Hi all, I have a newbie question regarding the ReAct agent: how can I extract the thoughts/actions/action input/observations such that I could pass them to a frontend?
Thought: The current language of the user is English. I need to use a tool to help me answer the question.
Action: sqrt
Action Input: {'x': 123}
Observation: 11.090536506409418
> Running step 3ccbf375-d226-4a50-b7d9-1d7330595763. Step input: None
Thought: I can answer without using any more tools. I'll use the user's language to answer.
Answer: The square root of 123 is approximately 11.0905.
The square root of 123 is approximately 11.0905.
In other words, how can I access "Thought: The current language of the user is English. I need to use a tool to help me answer the question." and store it in a variable? Any help/pointers highly appreciated!