mirror of
https://github.com/hwchase17/langchain
synced 2024-11-20 03:25:56 +00:00
ce61a8ca98
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
10 lines
380 B
Python
10 lines
380 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": []}))
|