I am using llamaindex ReAct agent to solve my problem. I try to get json schema from my own API. This schema is very important as a context to generate json based on the schema. Schema is quite big.
Agent starts very well. It understands what kind of schema I need. FunctionTool goes to API gets schema. It shows schema to me in verbose mode. And all I want is to return the schema to python code as a text. But after Observation step agent is failed with "Error: Could not parse output. Please follow the thought-action-input format. Try again.". And it restarts flow from the beginning until it reaches attempts limit
How can I get a response of the FunctionTool from the Agent whithout problems?