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

agentscope.app.middleware

module agentscope.app.middleware

agentscope.app.middleware 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 7 个公开类型。

The middlewares module.

源码Source agentscope/app/middleware/__init__.py:1

类Classes

AGUIProtocolMiddleware
类class
AGUI 协议中间件,在智能体执行流程中提供横切扩展。
The middleware that converts the AgentScope events into AGUI protocol.
InboxMiddleware
类class
收件箱中间件,在智能体执行流程中提供横切扩展。
Drain the session's inbox and inject HintBlocks before each reasoning step.
ProtocolMiddlewareBase
类class
协议中间件基类,承载智能体的部署、调度与服务化运行。
Base middleware for converting AgentEvent stream to protocol format.
SOPStepSubmitMiddleware
类class
SOP 步骤提交中间件,在智能体执行流程中提供横切扩展。
Require a step's agent to end its turn through its submit tool.
StateChangeMiddleware
类class
状态变更中间件,在智能体执行流程中提供横切扩展。
Detect state / team changes after each tool call and push notifications to the session event stream.
TeamMemberLoopMiddleware
类class
团队成员循环中间件,在智能体执行流程中提供横切扩展。
The team member loop engineering middleware, that requires:
ToolOffloadMiddleware
类class
工具卸载中间件,在智能体执行流程中提供横切扩展。
Middleware that offloads timed-out tool calls to background tasks.
基于官方固定版本源码静态生成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.