Class StudioConfig

java.lang.Object
io.agentscope.core.studio.StudioConfig

public class StudioConfig extends Object
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:
  • Method Details

    • builder

      public static StudioConfig.Builder builder()
    • getStudioUrl

      public String getStudioUrl()
      Gets the Studio server base URL.
      Returns:
      the Studio URL (default: "http://localhost:3000")
    • getTracingUrl

      public String getTracingUrl()
      Gets the tracing endpoint URL for pushing messages.
      Returns:
      the tracing URL (default: studioUrl + "/v1/traces")
    • getProject

      public String getProject()
      Gets the project name for this run.
      Returns:
      the project name (default: "UnnamedProject")
    • getRunName

      public String getRunName()
      Gets the human-readable name for this run.
      Returns:
      the run name (default: "run_" + timestamp)
    • getRunId

      public String 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

      public Duration getReconnectDelay()
      Gets the initial delay between reconnection attempts.
      Returns:
      the reconnect delay (default: 1 second)
    • getReconnectMaxDelay

      public Duration getReconnectMaxDelay()
      Gets the maximum delay between reconnection attempts.
      Returns:
      the maximum reconnect delay (default: 5 seconds)