Skip to content

[Bug]:AGUI扩展丢失TOOL_CALL_START事件 #588

@gengxin

Description

@gengxin

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:

  1. agentscope1.0.5, qwen3-max模型,构建带有toolkit的ReAct模型,示例代码如下:
public Agent buildAgent() {
return ReActAgent.builder()
            .name(name)
            .sysPrompt(sysPrompt)
            .model(model)
            .toolkit(toolkit)
            .maxIters(maxIters)
            .build();
}
  1. 注册Agui factory
registry.registerFactory("default", TestAgent::buildAgent);
  1. 前端使用@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.
  1. 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions