mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-23 02:15:42 +00:00
Add Gmail Agent Example (#14567)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
9
templates/openai-functions-agent-gmail/main.py
Normal file
9
templates/openai-functions-agent-gmail/main.py
Normal 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": []}))
|
Reference in New Issue
Block a user