包package
io.agentscope.core.middlewareio.agentscope.core.middleware
package io.agentscope.core.middleware
io.agentscope.core.middleware 属于智能体运行时,推理、工具调用与会话执行。 该包共收录 9 个公开类型。
io.agentscope.core.middleware belongs to the Agent runtime layer and contains 9 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
MiddlewareBase | 接口interface | 响应式中间件接口 Middleware provides interception mechanisms at 5 key execution points
in the Agent lifecycle. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
FinalAnswerFilterMiddleware | 类class | 最终答案过滤中间件,在智能体执行流程中提供横切扩展。 Exposes only the text from the final reasoning round of a ReAct stream. |
MiddlewareChain | 类class | 中间件 Chain,驱动智能体的推理、工具调用与会话执行。 Builds an onion-style middleware chain for a given interception point. |
TaskReminderMiddleware | 类class | 任务 Reminder 中间件,在智能体执行流程中提供横切扩展。 Keeps the agent's todo list in front of the model so long-running tasks don't drift. |
记录Records
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
ActingInput | 记录record | 用于`MiddlewareBase#onActing`的输入上下文。 Input context for `MiddlewareBase#onActing`. |
AgentInput | 记录record | 用于`MiddlewareBase#onAgent`的输入上下文。 Input context for `MiddlewareBase#onAgent`. |
ModelCallInput | 记录record | 用于`MiddlewareBase#onModelCall`的输入上下文。 Input context for `MiddlewareBase#onModelCall`. |
ReasoningInput | 记录record | 用于`MiddlewareBase#onReasoning`的输入上下文。 Input context for `MiddlewareBase#onReasoning`. |