-
Notifications
You must be signed in to change notification settings - Fork 133
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
使用工具的时候可以取到中间过程的响应吗? #158
Comments
使用监听器: def judgement_handler(data):
pass
def tool_response_handler(data):
pass
agent.add_event_listener("tool:judgement", judgement_handler)
agent.add_event_listener("tool:response", tool_response_handler) |
@Maplemx 感谢大佬,试了下,事件名称应该如下才对:
|
啊,对的,typo了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output
进行输出格式控制,如果没有成功调用tool,则返回“我不了这个问题”目前看到确实大模型返回了一个可以解析的JSON格式
[Final Response]
要怎么样才能取到
need_tool
这个字段的值?The text was updated successfully, but these errors were encountered: