StudioConfig
public class StudioConfig
io/agentscope/core/studio/StudioConfig.java:41–212Studio 配置,保存相关配置项。位于 io.agentscope.core.studio 包。核心成员包括 builder、getStudioUrl、getTracingUrl、getProject、getRunName、getRunId。
Configuration for AgentScope Studio integration.
This class holds all configuration parameters needed to connect to and communicate with AgentScope Studio, including HTTP and WebSocket settings.
Example usage:
`StudioConfig config = StudioConfig.builder()
.studioUrl("http://localhost:3000")
.project("MyProject")
.runName("experiment_001")
.maxRetries(5)
.build();
`
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.core.studio that evaluates agent behaviour and records tracing and telemetry data. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static Builder builder()static | 返回构建器实例。 Returns the builder. |
public String getStudioUrl() | 获取 `getStudioUrl`。 Gets the Studio server base URL. |
public String getTracingUrl() | 获取追踪 URL。 Gets the tracing endpoint URL for pushing messages. |
public String getProject() | 获取 `getProject`。 Gets the project name for this run. |
public String getRunName() | 获取运行名称。 Gets the human-readable name for this run. |
public String getRunId() | 获取运行标识。 Gets the unique identifier for this run. |
public int getMaxRetries() | 获取最大重试。 Gets the maximum number of HTTP request retries. |
public int getReconnectAttempts() | 获取重连尝试次数。 Gets the maximum number of WebSocket reconnection attempts. |
public Duration getReconnectDelay() | 获取重连延迟。 Gets the initial delay between reconnection attempts. |
public Duration getReconnectMaxDelay() | 获取重连最大延迟。 Gets the maximum delay between reconnection attempts. |
方法详情Method Detail
builder
public static Builder builder()
返回构建器实例。
Returns the builder.
Builderio/agentscope/core/studio/StudioConfig.java:64–66getStudioUrl
public String getStudioUrl()
获取 getStudioUrl。
Gets the Studio server base URL.
Stringio/agentscope/core/studio/StudioConfig.java:73–75getTracingUrl
public String getTracingUrl()
获取追踪 URL。
Gets the tracing endpoint URL for pushing messages.
Stringio/agentscope/core/studio/StudioConfig.java:82–84getProject
public String getProject()
获取 getProject。
Gets the project name for this run.
Stringio/agentscope/core/studio/StudioConfig.java:91–93getRunName
public String getRunName()
获取运行名称。
Gets the human-readable name for this run.
Stringio/agentscope/core/studio/StudioConfig.java:100–102getRunId
public String getRunId()
获取运行标识。
Gets the unique identifier for this run.
Stringio/agentscope/core/studio/StudioConfig.java:109–111getMaxRetries
public int getMaxRetries()
获取最大重试。
Gets the maximum number of HTTP request retries.
intio/agentscope/core/studio/StudioConfig.java:118–120getReconnectAttempts
public int getReconnectAttempts()
获取重连尝试次数。
Gets the maximum number of WebSocket reconnection attempts.
intio/agentscope/core/studio/StudioConfig.java:127–129getReconnectDelay
public Duration getReconnectDelay()
获取重连延迟。
Gets the initial delay between reconnection attempts.
Durationio/agentscope/core/studio/StudioConfig.java:136–138getReconnectMaxDelay
public Duration getReconnectMaxDelay()
获取重连最大延迟。
Gets the maximum delay between reconnection attempts.
Durationio/agentscope/core/studio/StudioConfig.java:145–147嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 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.