-
Notifications
You must be signed in to change notification settings - Fork 214
Open
Labels
bugSomething isn't workingSomething isn't working
Description
AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.
Describe the bug
调用AGUI扩展透出的/agui/run接口时,返回的message type没有TOOL_CALL_START类型,但有TOOL_CALL_END类型
To Reproduce
Steps to reproduce the behavior:
- agentscope1.0.5, qwen3-max模型,构建带有toolkit的ReAct模型,示例代码如下:
public Agent buildAgent() {
return ReActAgent.builder()
.name(name)
.sysPrompt(sysPrompt)
.model(model)
.toolkit(toolkit)
.maxIters(maxIters)
.build();
}- 注册Agui factory
registry.registerFactory("default", TestAgent::buildAgent);- 前端使用@agui/client sdk调用agui接口 /agui/run,有报错信息
Agent execution failed: AGUIError: Cannot send 'TOOL_CALL_END' event: No active tool call found with ID 'call_822b9df76f71423f97e00897'. A 'TOOL_CALL_START' event must be sent first.
- Expected behavior
A clear and concise description of what you expected to happen.
前端收到完整的TOOL_CALL_START、TOOL_CALL_ARGS、TOOL_CALL_END事件
Error messages
Detailed error messages.
Environment (please complete the following information):
- AgentScope-Java Version: [1.0.5]
- Java Version: [17]
- OS: [macos]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Backlog