Builder
public static class Builder
源码Source
io/agentscope/core/studio/StudioConfig.java:149–211构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio 包。核心成员包括 studioUrl、tracingUrl、project、runName、runId、maxRetries。
A class in io.agentscope.core.studio that evaluates agent behaviour and records tracing and telemetry data. Declared in io.agentscope.core.studio.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder studioUrl(String studioUrl) | 设置该配置项。 Performs the studio url operation. |
public Builder tracingUrl(String tracingUrl) | 设置追踪 URL。 Performs the tracing url operation. |
public Builder project(String project) | 设置该配置项。 Performs the project operation. |
public Builder runName(String runName) | 设置运行名称。 Runs the name. |
public Builder runId(String runId) | 设置运行标识。 Runs the id. |
public Builder maxRetries(int maxRetries) | 设置最大重试。 Performs the max retries operation. |
public Builder reconnectAttempts(int reconnectAttempts) | 设置重连尝试次数。 Performs the reconnect attempts operation. |
public Builder reconnectDelay(Duration reconnectDelay) | 设置重连延迟。 Performs the reconnect delay operation. |
public Builder reconnectMaxDelay(Duration reconnectMaxDelay) | 设置重连最大延迟。 Performs the reconnect max delay operation. |
public StudioConfig build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
studioUrl
public Builder studioUrl(String studioUrl)
设置该配置项。
Performs the studio url operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
studioUrl | String | Studio URL(类型 `String`)。The studio url. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:160–163tracingUrl
public Builder tracingUrl(String tracingUrl)
设置追踪 URL。
Performs the tracing url operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tracingUrl | String | 追踪 URL(类型 `String`)。The tracing url. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:165–168project
public Builder project(String project)
设置该配置项。
Performs the project operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
project | String | project(类型 `String`)。The project. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:170–173runName
public Builder runName(String runName)
设置运行名称。
Runs the name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runName | String | 运行名称(类型 `String`)。The run name. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:175–178runId
public Builder runId(String runId)
设置运行标识。
Runs the id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runId | String | 运行标识(类型 `String`)。The run id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:180–183maxRetries
public Builder maxRetries(int maxRetries)
设置最大重试。
Performs the max retries operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxRetries | int | 最大重试(类型 `int`)。The max retries. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:185–188reconnectAttempts
public Builder reconnectAttempts(int reconnectAttempts)
设置重连尝试次数。
Performs the reconnect attempts operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reconnectAttempts | int | 重连尝试次数(类型 `int`)。The reconnect attempts. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:190–193reconnectDelay
public Builder reconnectDelay(Duration reconnectDelay)
设置重连延迟。
Performs the reconnect delay operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reconnectDelay | Duration | 重连延迟(类型 `Duration`)。The reconnect delay. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:195–198reconnectMaxDelay
public Builder reconnectMaxDelay(Duration reconnectMaxDelay)
设置重连最大延迟。
Performs the reconnect max delay operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reconnectMaxDelay | Duration | 重连最大延迟(类型 `Duration`)。The reconnect max delay. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/StudioConfig.java:200–203build
public StudioConfig build()
构建并返回最终实例。
Creates and returns an instance.
StudioConfig返回StudioConfig。Returns studio config.
源码Source
io/agentscope/core/studio/StudioConfig.java:205–210