pub struct RunConfigBuilder { /* private fields */ }Implementations§
Source§impl RunConfigBuilder
impl RunConfigBuilder
pub fn model(self, model: ModelRef) -> Self
pub fn model_provider(self, provider: impl ModelProvider + 'static) -> Self
pub fn model_provider_arc(self, provider: Arc<dyn ModelProvider>) -> Self
pub fn model_settings(self, settings: ModelSettings) -> Self
pub fn workspace(self, workspace: impl Into<PathBuf>) -> Self
pub fn workspace_backend(self, backend: Arc<dyn WorkspaceBackend>) -> Self
pub fn session(self, session: impl Session + 'static) -> Self
pub fn session_arc(self, session: Arc<dyn Session>) -> Self
pub fn initial_messages(self, messages: Vec<Message>) -> Self
pub fn max_cycles(self, max_cycles: u32) -> Self
pub fn max_handoffs(self, max_handoffs: u32) -> Self
pub fn no_tool_policy(self, policy: NoToolPolicy) -> Self
pub fn tool_policy(self, tool_policy: ToolPolicy) -> Self
pub fn execution_backend( self, execution_backend: RuntimeExecutionBackend, ) -> Self
pub fn execution_mode(self, execution_mode: ExecutionMode) -> Self
pub fn cancellation_token(self, cancellation_token: CancellationToken) -> Self
pub fn hook(self, hook: Arc<dyn RuntimeHook>) -> Self
pub fn trace_sink(self, sink: Arc<dyn TraceSink>) -> Self
pub fn trace_id(self, trace_id: impl Into<String>) -> Self
pub fn workflow_name(self, workflow_name: impl Into<String>) -> Self
pub fn event_store(self, store: Arc<dyn RunEventStore>) -> Self
pub fn event_store_fail_closed(self, fail_closed: bool) -> Self
pub fn approval_provider(self, provider: Arc<dyn ApprovalProvider>) -> Self
pub fn approval_timeout(self, timeout: Duration) -> Self
pub fn approval_broker(self, broker: ApprovalBroker) -> Self
pub fn context_provider(self, provider: Arc<dyn ContextProvider>) -> Self
pub fn max_context_chars(self, max_chars: usize) -> Self
pub fn memory_provider(self, provider: Arc<dyn MemoryProvider>) -> Self
pub fn app_state<T>(self, app_state: T) -> Self
pub fn app_state_arc(self, app_state: Arc<dyn Any + Send + Sync>) -> Self
pub fn tool_registry_factory( self, factory: impl Fn() -> ToolRegistry + Send + Sync + 'static, ) -> Self
pub fn tool_registry_factory_arc(self, factory: ToolRegistryFactory) -> Self
pub fn log_preview_chars(self, max_chars: usize) -> Self
pub fn debug_dump_dir(self, path: impl Into<PathBuf>) -> Self
pub fn before_cycle_messages( self, provider: impl Fn(u32, &[Message], &Metadata) -> Vec<Message> + Send + Sync + 'static, ) -> Self
pub fn before_cycle_messages_arc( self, provider: BeforeCycleMessageProvider, ) -> Self
pub fn interruption_messages( self, provider: impl Fn() -> Vec<Message> + Send + Sync + 'static, ) -> Self
pub fn interruption_messages_arc( self, provider: InterruptionMessageProvider, ) -> Self
pub fn sub_task_manager(self, manager: SubTaskManager) -> Self
pub fn runtime_log_handler( self, handler: impl Fn(&str, &Metadata) + Send + Sync + 'static, ) -> Self
pub fn runtime_log_handler_arc(self, handler: RuntimeEventHandler) -> Self
pub fn runtime_stream_callback( self, callback: impl Fn(&Metadata) + Send + Sync + 'static, ) -> Self
pub fn runtime_stream_callback_arc(self, callback: LlmStreamCallback) -> Self
pub fn budget_limits(self, limits: RunBudgetLimits) -> Self
pub fn host_cost_meter(self, meter: impl HostCostMeter + 'static) -> Self
pub fn host_cost_meter_arc(self, meter: Arc<dyn HostCostMeter>) -> Self
pub fn checkpoint_config(self, checkpoint_config: CheckpointConfig) -> Self
pub fn checkpoint_extension( self, extension: impl CheckpointExtension + 'static, ) -> Self
pub fn checkpoint_extension_arc( self, extension: Arc<dyn CheckpointExtension>, ) -> Self
pub fn reconciliation_provider( self, provider: impl ReconciliationProvider + 'static, ) -> Self
pub fn reconciliation_provider_arc( self, provider: Arc<dyn ReconciliationProvider>, ) -> Self
pub fn metadata(self, key: impl Into<String>, value: Value) -> Self
pub fn build(self) -> RunConfig
Trait Implementations§
Source§impl Default for RunConfigBuilder
impl Default for RunConfigBuilder
Source§fn default() -> RunConfigBuilder
fn default() -> RunConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RunConfigBuilder
impl !UnwindSafe for RunConfigBuilder
impl Freeze for RunConfigBuilder
impl Send for RunConfigBuilder
impl Sync for RunConfigBuilder
impl Unpin for RunConfigBuilder
impl UnsafeUnpin for RunConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.