Why do workflow tools need to return two identical results? One is JSON, and the other is TEXT #10487
swingchen01
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
Content
Why does the workflow tool 'workflow_tool.py' return a TEXT text result with the same result as JSON in addition to the JSON result during its execution? Are there any special scenarios to consider?
The above program logic will result in the tool results returned in the [ToolEngine. _convert_tool_response_to_str()] method, and two identical results will be obtained. This will cause the FunctionCallAgentRunner to provide the duplicate tool results to the LLM's API, which will take up twice the number of tokens.
Beta Was this translation helpful? Give feedback.
All reactions