pub struct RunConfig {Show 14 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 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>>§app_state: Option<Arc<dyn Any + Send + Sync>>§metadata: MetadataImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunConfig
impl !RefUnwindSafe for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
impl !UnwindSafe 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.