包package
agentscope.app.middlewareagentscope.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. |