Package io.agentscope.core.studio
Class StudioConfig
java.lang.Object
io.agentscope.core.studio.StudioConfig
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();
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StudioConfig.Builderbuilder()intGets the maximum number of HTTP request retries.Gets the project name for this run.intGets the maximum number of WebSocket reconnection attempts.Gets the initial delay between reconnection attempts.Gets the maximum delay between reconnection attempts.getRunId()Gets the unique identifier for this run.Gets the human-readable name for this run.Gets the Studio server base URL.Gets the tracing endpoint URL for pushing messages.
-
Method Details
-
builder
-
getStudioUrl
Gets the Studio server base URL.- Returns:
- the Studio URL (default: "http://localhost:3000")
-
getTracingUrl
Gets the tracing endpoint URL for pushing messages.- Returns:
- the tracing URL (default: studioUrl + "/v1/traces")
-
getProject
Gets the project name for this run.- Returns:
- the project name (default: "UnnamedProject")
-
getRunName
Gets the human-readable name for this run.- Returns:
- the run name (default: "run_" + timestamp)
-
getRunId
Gets the unique identifier for this run.- Returns:
- the run ID (default: random UUID)
-
getMaxRetries
public int getMaxRetries()Gets the maximum number of HTTP request retries.- Returns:
- the max retries (default: 3)
-
getReconnectAttempts
public int getReconnectAttempts()Gets the maximum number of WebSocket reconnection attempts.- Returns:
- the reconnect attempts (default: 3)
-
getReconnectDelay
Gets the initial delay between reconnection attempts.- Returns:
- the reconnect delay (default: 1 second)
-
getReconnectMaxDelay
Gets the maximum delay between reconnection attempts.- Returns:
- the maximum reconnect delay (default: 5 seconds)
-