agentscope-java
agentscope-java copied to clipboard
[Bug]: stale ToolResultState in agent context after tool completion
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
agentState
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.