Skip to content

Commit

Permalink
docs:pdate examples.md (#887)
Browse files Browse the repository at this point in the history
Minor fix of exmaples.md
  • Loading branch information
PavelAgurov authored Jan 22, 2024
1 parent ff01661 commit 26cabb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26cabb0

Please sign in to comment.