Add Gmail Agent Example (#14567)

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
William FH
2023-12-12 08:34:28 -08:00
committed by GitHub
parent 76905aa043
commit ce61a8ca98
9 changed files with 2261 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from openai_functions_agent.agent import agent_executor
if __name__ == "__main__":
question = (
"Write a draft response to LangChain's last email. "
"First do background research on the sender and topics to make sure you"
" understand the context, then write the draft."
)
print(agent_executor.invoke({"input": question, "chat_history": []}))