AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.extensions.agentprotocol

io.agentscope.extensions.agentprotocol

package io.agentscope.extensions.agentprotocol

io.agentscope.extensions.agentprotocol 属于基础设施,类型、异常、传输与工具函数。 该包共收录 12 个公开类型。

io.agentscope.extensions.agentprotocol belongs to the Infrastructure layer and contains 12 public types.

接口Interfaces

类型Type种类Kind说明Description
AgentFactory接口interface
定义智能体工厂契约的接口。
Resolves the `HarnessAgent` that executes an Agent Protocol task.
AgentProtocolEventBus接口interface
定义智能体协议事件总线契约的接口。
Event bus abstraction used by Agent Protocol task SSE endpoints.
ProtocolTaskRepository接口interface
定义协议任务仓库契约的接口。
Control-plane persistence for Agent Protocol `TaskRecord`s.
RuntimeContextCustomizer接口interface
定义运行时上下文 Customizer契约的接口。
Hook for shaping the `RuntimeContext` of an Agent Protocol task run.

类Classes

类型Type种类Kind说明Description
AgentProtocolAutoConfiguration类class
智能体协议 Auto 配置,保存相关配置项。
Registers task protocol REST endpoints when enabled.
AgentProtocolConstants类class
智能体协议 Constants,为框架提供通用类型与基础能力。
Workspace partitioning for persisted task records served by the protocol endpoints, plus the contract for caller-supplied context attributes.
AgentProtocolController类class
智能体协议控制器,为框架提供通用类型与基础能力。
Internal AgentScope task protocol (`/tasks/...`).
AgentProtocolProperties类class
智能体协议属性,为框架提供通用类型与基础能力。
Configuration for the AgentScope task HTTP protocol endpoints.
AgentProtocolTaskEventBus类class
智能体协议任务事件总线,为框架提供通用类型与基础能力。
Per-task event bus for Agent Protocol SSE streaming.
AgentProtocolTaskStore类class
智能体协议任务存储,负责持久化与读取数据。
In-memory execution handles with control-plane `TaskRecord` persistence.
WorkspaceProtocolTaskRepository类class
工作区协议任务仓库,负责持久化与读取数据。
`ProtocolTaskRepository` backed by a dedicated `WorkspaceManager` writing into the synthetic `AgentProtocolConstants#PROTOCOL_AGENT_ID` / `AgentProtocolConstants#PROTOCOL_SESSION_ID` bucket.

记录Records

类型Type种类Kind说明Description
AgentRequest记录record
承载智能体请求数据的记录类型。
Everything an `AgentFactory` needs to pick or build the agent for one task run.
基于官方固定版本源码静态生成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.