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 max_cycles(self, max_cycles: u32) -> 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 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 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.