OrchestrationClient
public final class OrchestrationClient
io/agentscope/extensions/aistio/transport/OrchestrationClient.java:30–165Orchestration 客户端,封装与远端服务的连接和调用。位于 io.agentscope.extensions.aistio.transport 包。核心成员包括 definitions、definition、createDefinition、updateDefinition、validateDefinition、publishDefinition。
Operator client for orchestration definitions, runs, attempts, and runtime policies.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public OrchestrationClient(ControlPlaneHttpClient http, String tenant, String namespace) | 初始化 `OrchestrationClient` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
OrchestrationClient
public OrchestrationClient(ControlPlaneHttpClient http, String tenant, String namespace)
初始化 OrchestrationClient 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
http | ControlPlaneHttpClient | HTTP(类型 `ControlPlaneHttpClient`)。The http. |
tenant | String | 租户(类型 `String`)。The tenant. |
namespace | String | 命名空间(类型 `String`)。The namespace. |
io/agentscope/extensions/aistio/transport/OrchestrationClient.java:36–40方法详情Method Detail
definitions
public JsonNode definitions()
返回定义。
Returns the definitions.
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:42–44definition
public JsonNode definition(String id)
设置定义。
Performs the definition operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:46–48createDefinition
public JsonNode createDefinition(Object body)
创建定义。
Creates the definition.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
body | Object | 正文(类型 `Object`)。The body. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:50–52updateDefinition
public JsonNode updateDefinition(String id, Object body)
更新定义。
Updates the definition.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
body | Object | 正文(类型 `Object`)。The body. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:54–56validateDefinition
public JsonNode validateDefinition(String id, Object spec)
校验定义。
Validates the definition.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
spec | Object | 规格(类型 `Object`)。The spec. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:58–63publishDefinition
public JsonNode publishDefinition(String id)
发布定义。
Performs the publish definition operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:65–67revisions
public JsonNode revisions(String id)
设置该参数。
Performs the revisions operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:69–71start
public JsonNode start(String id, Object request)
执行启动相关操作。
Performs the start operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
request | Object | 请求(类型 `Object`)。The request. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:73–75runs
public JsonNode runs()
返回 runs 结果。
Returns the runs.
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:77–79run
public JsonNode run(String id)
设置运行。
Performs the run operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:81–83graph
public JsonNode graph(String id)
设置图。
Performs the graph operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:85–87events
public JsonNode events(String id)
设置事件。
Performs the events operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:89–91control
public JsonNode control(String id, String action)
执行 control 方法。
Performs the control operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
action | String | 动作(类型 `String`)。The action. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:93–97rerun
public JsonNode rerun(String id, String idempotencyKey, Object input)
执行 rerun 方法。
Performs the rerun operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
idempotencyKey | String | idempotency 键(类型 `String`)。The idempotency key. |
input | Object | 输入消息(类型 `Object`)。The input. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:99–105signal
public JsonNode signal(String id, String name, String idempotencyKey, Object payload)
执行 signal 方法。
Performs the signal operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
name | String | 名称(类型 `String`)。The name. |
idempotencyKey | String | idempotency 键(类型 `String`)。The idempotency key. |
payload | Object | 负载(类型 `Object`)。The payload. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:107–116attempts
public JsonNode attempts()
返回尝试次数。
Returns the attempts.
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:118–120attempt
public JsonNode attempt(String id)
设置尝试。
Performs the attempt operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:122–124runtimePolicy
public JsonNode runtimePolicy(String agentRef)
设置运行时策略。
Performs the runtime policy operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentRef | String | 智能体引用(类型 `String`)。The agent ref. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:126–128putRuntimePolicy
public JsonNode putRuntimePolicy(String agentRef, Object policy)
执行 putRuntimePolicy 方法。
Performs the put runtime policy operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentRef | String | 智能体引用(类型 `String`)。The agent ref. |
policy | Object | 策略(类型 `Object`)。The policy. |
JsonNodeio/agentscope/extensions/aistio/transport/OrchestrationClient.java:130–132