From 26cabb0afb4f13256e5443b54246dbe3ec95b567 Mon Sep 17 00:00:00 2001 From: PVA <37487002+PavelAgurov@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:36:39 +0100 Subject: [PATCH] docs:pdate examples.md (#887) Minor fix of exmaples.md --- docs/examples.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 9323f8bf4..f4f004ad6 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -295,12 +295,14 @@ salaries_df = pd.DataFrame(salaries_data) llm = OpenAI("OpenAI_API_KEY") agent = Agent([employees_df, salaries_df], config={"llm": llm}, memory_size=10) +query = "Who gets paid the most?" + # Chat with the agent -response = agent.chat("Who gets paid the most?") +response = agent.chat(query) print(response) # Get Clarification Questions -questions = agent.clarification_questions() +questions = agent.clarification_questions(query) for question in questions: print(question)