agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Bug]: stale ToolResultState in agent context after tool completion

Open amyaxy opened this issue 5 months ago • 0 comments

stale ToolResultState in agent context after tool completion

Describe the bug 工具调用中: 实时事件流 AgentEvent 显示 TOOL_RESULT_END "state":"success" 是正确的 历史消息中 agent.getDelegate().getAgentState(ctx).contextMutable() 中 "state":"running" 是错误的

To Reproduce Steps to reproduce the behavior:

realtime Image

agentState Image

Expected behavior A clear and concise description of what you expected to happen.

Error messages Detailed error messages.

Environment (please complete the following information):

  • AgentScope-Java Version: 2.0.0-SNAPSHOT
  • Java Version: 21
  • OS: windows

Additional context Add any other context about the problem here.

amyaxy avatar Jun 23 '26 09:06 amyaxy