Find answers from the community

Updated 3 months ago

Hi I have agent response agent chat

Hi, I have agent_response = agent.chat(question). Does anyone know why there are differences between agent_response.response and agent_response.sources[0].content? Is agent_response.sources[0].content the agent's output after using the tools given whereas agent_response.response is the agent's output without restricting its reasoning to the tools?
L
n
2 comments
Exactly! The source is the raw tool output (i.e. from a query engine possibly, or any other tool). The agent then takes that and basically re-interprets that response to answer the user, based on chat history
Thanks for the clarification πŸ™Œ
Add a reply
Sign up and join the conversation on Discord