AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.core.middleware

io.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.

所属构件Artifacts agentscope-core

接口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`.
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.