AS AgentScopeAPI 手册 / API Reference

StudioConfig

public class StudioConfig
源码Source io/agentscope/core/studio/StudioConfig.java:41–212

Studio 配置,保存相关配置项。位于 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()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/studio/StudioConfig.java:64–66

getStudioUrl

public String getStudioUrl()

获取 getStudioUrl。

Gets the Studio server base URL.

返回Returns String
返回字符串结果。the Studio URL (default: "http://localhost:3000")
源码Source io/agentscope/core/studio/StudioConfig.java:73–75

getTracingUrl

public String getTracingUrl()

获取追踪 URL。

Gets the tracing endpoint URL for pushing messages.

返回Returns String
返回字符串结果。the tracing URL (default: studioUrl + "/v1/traces")
源码Source io/agentscope/core/studio/StudioConfig.java:82–84

getProject

public String getProject()

获取 getProject。

Gets the project name for this run.

返回Returns String
返回字符串结果。the project name (default: "UnnamedProject")
源码Source io/agentscope/core/studio/StudioConfig.java:91–93

getRunName

public String getRunName()

获取运行名称。

Gets the human-readable name for this run.

返回Returns String
运行名称(默认:"运行_"+时间戳)。the run name (default: "run_" + timestamp)
源码Source io/agentscope/core/studio/StudioConfig.java:100–102

getRunId

public String getRunId()

获取运行标识。

Gets the unique identifier for this run.

返回Returns String
返回字符串结果。the run ID (default: random UUID)
源码Source io/agentscope/core/studio/StudioConfig.java:109–111

getMaxRetries

public int getMaxRetries()

获取最大重试。

Gets the maximum number of HTTP request retries.

返回Returns int
最大重试(默认:3)。the max retries (default: 3)
源码Source io/agentscope/core/studio/StudioConfig.java:118–120

getReconnectAttempts

public int getReconnectAttempts()

获取重连尝试次数。

Gets the maximum number of WebSocket reconnection attempts.

返回Returns int
重连尝试次数(默认:3)。the reconnect attempts (default: 3)
源码Source io/agentscope/core/studio/StudioConfig.java:127–129

getReconnectDelay

public Duration getReconnectDelay()

获取重连延迟。

Gets the initial delay between reconnection attempts.

返回Returns Duration
返回时长。the reconnect delay (default: 1 second)
源码Source io/agentscope/core/studio/StudioConfig.java:136–138

getReconnectMaxDelay

public Duration getReconnectMaxDelay()

获取重连最大延迟。

Gets the maximum delay between reconnection attempts.

返回Returns Duration
返回时长。the maximum reconnect delay (default: 5 seconds)
源码Source io/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.

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.