agentscope
agentscope copied to clipboard
[Bug]:how to return true/false variable in using tool
with example for git ? output tool is "ServiceResponse" . how to tool output return true/false can Ai so that the agent can receive?
You can use the parser module to obtain structured output from LLMs, and parse them into required format (e.g. int, float, ...). Detailed examples refer to https://github.com/modelscope/agentscope/blob/main/src/agentscope/agents/dict_dialog_agent.py