Builder
public static final class Builder
io/agentscope/extensions/aistio/AistioConfig.java:128–270用于AistioConfig的可变构建器。位于 io.agentscope.extensions.aistio 包。核心成员包括 controlPlane、controlPlaneHttp、internalToken、registrationCredential、registeredIdentity、tenant。
Mutable builder for AistioConfig.
方法摘要Method Summary
方法详情Method Detail
controlPlane
public Builder controlPlane(String controlPlane)
设置控制面。
Performs the control plane operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
controlPlane | String | 控制面(类型 `String`)。The control plane. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:154–157controlPlaneHttp
public Builder controlPlaneHttp(String controlPlaneHttp)
设置控制面 HTTP。
aistiod REST base URL used for /api/v1/dataplanes/* self-registration.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
controlPlaneHttp | String | 控制面 HTTP(类型 `String`)。The control plane http. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:160–163internalToken
public Builder internalToken(String internalToken)
设置内部令牌。
Performs the internal token operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
internalToken | String | 内部令牌(类型 `String`)。The internal token. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:165–168registrationCredential
public Builder registrationCredential(String registrationCredential)
设置注册凭证。
Performs the registration credential operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
registrationCredential | String | 注册凭证(类型 `String`)。The registration credential. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:170–173registeredIdentity
public Builder registeredIdentity(String agentId, String bindingId, long generation)
执行已注册身份相关操作。
Performs the registered identity operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
bindingId | String | 绑定标识(类型 `String`)。The binding id. |
generation | long | generation(类型 `long`)。The generation. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:175–180tenant
public Builder tenant(String tenant)
设置租户。
Performs the tenant operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tenant | String | 租户(类型 `String`)。The tenant. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:182–185namespace
public Builder namespace(String namespace)
设置命名空间。
Performs the namespace operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
namespace | String | 命名空间(类型 `String`)。The namespace. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:187–190instanceKey
public Builder instanceKey(String instanceKey)
设置实例键。
Performs the instance key operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
instanceKey | String | 实例键(类型 `String`)。The instance key. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:192–195enableEvents
public Builder enableEvents(boolean enableEvents)
启用事件。
Enables the events.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableEvents | boolean | 启用事件(类型 `boolean`)。The enable events. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:197–200eventJournalDir
public Builder eventJournalDir(String eventJournalDir)
设置该配置项。
Directory used by the durable, acknowledged Level-2 event outbox.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
eventJournalDir | String | 事件 Journal 目录(类型 `String`)。The event journal dir. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:203–206contractHttpPort
public Builder contractHttpPort(int contractHttpPort)
设置该配置项。
Performs the contract http port operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
contractHttpPort | int | 契约 HTTP Port(类型 `int`)。The contract http port. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:208–211contractHttpHost
public Builder contractHttpHost(String contractHttpHost)
设置该配置项。
Performs the contract http host operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
contractHttpHost | String | 契约 HTTP Host(类型 `String`)。The contract http host. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:213–216publicBaseUrl
public Builder publicBaseUrl(String publicBaseUrl)
设置该配置项。
Performs the public base url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
publicBaseUrl | String | public 基类 URL(类型 `String`)。The public base url. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:218–221sessionAffinity
public Builder sessionAffinity(String sessionAffinity)
设置该配置项。
Performs the session affinity operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionAffinity | String | 会话 Affinity(类型 `String`)。The session affinity. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:223–226startHttp
public Builder startHttp(boolean startHttp)
设置启动 HTTP。
Starts the http.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
startHttp | boolean | 启动 HTTP(类型 `boolean`)。The start http. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:228–231startGrpc
public Builder startGrpc(boolean startGrpc)
设置启动 gRPC。
Starts the grpc.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
startGrpc | boolean | 启动 gRPC(类型 `boolean`)。The start grpc. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:233–236startHttpRegister
public Builder startHttpRegister(boolean startHttpRegister)
设置启动 HTTP 注册。
Starts the http register.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
startHttpRegister | boolean | 启动 HTTP 注册(类型 `boolean`)。The start http register. |
Builderio/agentscope/extensions/aistio/AistioConfig.java:238–241build
public AistioConfig build()
构建并返回最终实例。
Creates and returns an instance.
AistioConfigio/agentscope/extensions/aistio/AistioConfig.java:243–269