Package io.agentscope.core.studio
Class StudioManager.Builder
java.lang.Object
io.agentscope.core.studio.StudioManager.Builder
- Enclosing class:
- StudioManager
Builder for configuring and initializing Studio integration.
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>Initializes Studio integration.maxRetries(int maxRetries) Sets the maximum number of HTTP request retries.Sets the project name.reconnectAttempts(int reconnectAttempts) Sets the number of WebSocket reconnection attempts.Sets the run name.Sets the Studio URL.tracingUrl(String tracingUrl) Sets the tracing URL (defaults to {studioUrl}/v1/traces).
-
Method Details
-
studioUrl
Sets the Studio URL.- Parameters:
studioUrl- The Studio server URL (e.g., "http://localhost:8000")- Returns:
- This builder
-
tracingUrl
Sets the tracing URL (defaults to {studioUrl}/v1/traces).- Parameters:
tracingUrl- The OpenTelemetry tracing endpoint URL- Returns:
- This builder
-
project
Sets the project name.- Parameters:
project- The project name- Returns:
- This builder
-
runName
Sets the run name.- Parameters:
runName- The run name- Returns:
- This builder
-
maxRetries
Sets the maximum number of HTTP request retries.- Parameters:
maxRetries- Maximum retry count (default: 3)- Returns:
- This builder
-
reconnectAttempts
Sets the number of WebSocket reconnection attempts.- Parameters:
reconnectAttempts- Maximum reconnection attempts (default: 3)- Returns:
- This builder
-
initialize
Initializes Studio integration.This method:
- Builds the configuration
- Creates HTTP and WebSocket clients
- Registers the run with Studio
- Establishes WebSocket connection
- Returns:
- A Mono that completes when initialization succeeds
-