Find answers from the community

Updated 2 months ago

React

Can anyone point to the parser/code that is currently being used to fetch function arguments when using models that don't have function calling (through a ReAct agent in particular)?
L
D
2 comments
I'm not 100% sure what you mean

But a react agent is just prompted with the current tools/descriptions and chat history, and the llm has to respond with a structure that the framework can parse

https://github.com/run-llama/llama_index/blob/14c52d42a4a12bc63db7f582e9a17c91f5984f15/llama-index-core/llama_index/core/agent/react/step.py#L403
I was looking for the parse_action_reasoning_step function and it's associated functions in the output_parser.py file, missed it when I was looking previously 🤷
Add a reply
Sign up and join the conversation on Discord