Hi, everyone
I want to get the intermediate results of the agent execution process, such as the results of ‘Using tool’, ‘Tool Input’, and ‘Tool Output’ in the picture. Currently, only the result of ‘Final Answer’ can be returned.
@Max_Moura Could you help me answer this?
If you exactly want the tool output as the final answer, use ‘result_as_answer=True’ as follows:
tools = [MyCustomTool(result_as_answer=True]
Refer to documentation Force Tool Output as Result
I had a similar issue earlier. If our instructions are not great(description, expected output), even though our tool is capable, these kinds of variations in results will arise sometimes.