pub struct RunConfig {Show 22 fields
pub model: Option<ModelRef>,
pub model_provider: Option<Arc<dyn ModelProvider>>,
pub model_settings: Option<ModelSettings>,
pub workspace: Option<PathBuf>,
pub workspace_backend: Option<Arc<dyn WorkspaceBackend>>,
pub session: Option<Arc<dyn Session>>,
pub max_cycles: Option<u32>,
pub tool_policy: ToolPolicy,
pub execution_backend: Option<RuntimeExecutionBackend>,
pub cancellation_token: Option<CancellationToken>,
pub hooks: Vec<Arc<dyn RuntimeHook>>,
pub trace_sink: Option<Arc<dyn TraceSink>>,
pub event_store: Option<Arc<dyn RunEventStore>>,
pub event_store_fail_closed: bool,
pub approval_provider: Option<Arc<dyn ApprovalProvider>>,
pub approval_timeout: Option<Duration>,
pub approval_broker: Option<ApprovalBroker>,
pub context_providers: Vec<Arc<dyn ContextProvider>>,
pub max_context_chars: Option<usize>,
pub memory_providers: Vec<Arc<dyn MemoryProvider>>,
pub app_state: Option<Arc<dyn Any + Send + Sync>>,
pub metadata: Metadata,
}Fields§
§model: Option<ModelRef>§model_provider: Option<Arc<dyn ModelProvider>>§model_settings: Option<ModelSettings>§workspace: Option<PathBuf>§workspace_backend: Option<Arc<dyn WorkspaceBackend>>§session: Option<Arc<dyn Session>>§max_cycles: Option<u32>§tool_policy: ToolPolicy§execution_backend: Option<RuntimeExecutionBackend>§cancellation_token: Option<CancellationToken>§hooks: Vec<Arc<dyn RuntimeHook>>§trace_sink: Option<Arc<dyn TraceSink>>§event_store: Option<Arc<dyn RunEventStore>>§event_store_fail_closed: bool§approval_provider: Option<Arc<dyn ApprovalProvider>>§approval_timeout: Option<Duration>§approval_broker: Option<ApprovalBroker>§context_providers: Vec<Arc<dyn ContextProvider>>§max_context_chars: Option<usize>§memory_providers: Vec<Arc<dyn MemoryProvider>>§app_state: Option<Arc<dyn Any + Send + Sync>>§metadata: MetadataImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunConfig
impl !UnwindSafe for RunConfig
impl Freeze for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.