agentscope-ai / agentscope-ai/agentscope-java

[Bug]:middleware 工具重写失败

Open
#2,672 2 comments 0 reactions 0 assignees View on GitHub
area/core/agent bug
Dominant language
Java
Stars
5.6k
Forks
1.3k
Avg merge
4d 12h
Merged PRs (30d)
77

Description

在当前2.0版本中,即便存在middleware,但还是将原始的工具结果直接返回大模型
目前只能通过hook进行结果改写,但hook在2.0版本被废弃,感觉middleware还没有完全能替改hook

Image

而且,io.agentscope.core.ReActAgent.CallExecution#actingStream中直接this::publishEvent 流式返回了,没有middleware处理的结果

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.