Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:how to return true/false variable in using tool #457

Open
dangyuuki123 opened this issue Oct 8, 2024 · 1 comment
Open

[Bug]:how to return true/false variable in using tool #457

dangyuuki123 opened this issue Oct 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dangyuuki123
Copy link

with example for git ? output tool is "ServiceResponse" . how to tool output return true/false can Ai so that the agent can receive?

@dangyuuki123 dangyuuki123 added the bug Something isn't working label Oct 8, 2024
@DavdGao
Copy link
Collaborator

DavdGao commented Oct 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants