主题
19 · Agent 平台(The AgentPlatform)
AgentPlatform 提供在特定运行环境中运行 Agent 的能力。 这是一个 SPI 接口,因此可以有多种实现。
核心类型
| 类型 | 说明 |
|---|---|
AgentPlatform | 运行时部署(Runtime deployment) |
Agent | 不可变的 Agent 描述(Immutable agent description) |
AgentScope | 动作、目标、条件的集合(Actions, goals, conditions) |
AgentProcess | 单次 Agent 运行(Single agent run) |
DataDictionary | 类型注册表(Type registry) |
Action | 可执行步骤(Executable step) |
Condition | 具名谓词(Named predicate) |
Goal | 期望的终态(Desired end state) |
ProcessOptions | 运行时配置(Runtime configuration) |
ProcessStatus | 运行时状态(Runtime state) |
DomainType | 类型表示(Type representation) |
注解与类型
| 注解 | 类型 |
|---|---|
@Agent | 组件注解(Component annotation) |
@action | 方法注解(Method annotation) |
@condition | 方法注解(Method annotation) |
@EmbabelComponent | 共享能力(Shared capabilities) |
关系图(原页面末尾的概念图)
| 起点 | 关系 | 终点 |
|---|---|---|
AgentPlatform | 部署(deploys) | Agent |
AgentPlatform | 是…的超集(acts as superset) | AgentScope |
AgentPlatform | 创建(creates) | AgentProcess |
AgentPlatform | 实现(implements) | DataDictionary |
Agent | 实现(implements) | AgentScope |
Agent | 实现(implements) | DataDictionary |
Agent | 由…组成(composed of) | Action |
Agent | 由…组成(composed of) | Condition |
Agent | 由…组成(composed of) | Goal |
AgentScope | 实现(implements) | DataDictionary |
AgentScope | 包含(contains) | Action |
AgentScope | 包含(contains) | Condition |
AgentScope | 包含(contains) | Goal |
AgentProcess | 由…配置(configured by) | ProcessOptions |
AgentProcess | 追踪(tracks) | ProcessStatus |
ProcessOptions | 配置(configures) | AgentProcess |
ProcessStatus | 报告(reports on) | AgentProcess |
DataDictionary | 包含(contains) | DomainType |
Action | 具有前置/后置条件(has pre/post conditions) | Condition |
@Agent | 定义(defines) | Agent |
@action | 创建(creates) | Action |
@condition | 创建(creates) | Condition |
@EmbabelComponent | 贡献(contributes to) | AgentScope |