langchain/templates/openai-functions-agent-gmail/main.py
Erick Friis 3a2eb6e12b
infra: add print rule to ruff (#16221)
Added noqa for existing prints. Can slowly remove / will prevent more
being intro'd
2024-02-09 16:13:30 -08:00

10 lines
394 B
Python

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": []})) # noqa: T201