pub struct RunnerBuilder { /* private fields */ }Implementations§
Source§impl RunnerBuilder
impl RunnerBuilder
pub fn model_provider(self, provider: impl ModelProvider + 'static) -> Self
pub fn model_provider_arc(self, provider: Arc<dyn ModelProvider>) -> Self
pub fn settings_file(self, settings_file: impl Into<PathBuf>) -> Self
pub fn default_backend(self, default_backend: impl Into<String>) -> Self
pub fn workspace(self, workspace: impl Into<PathBuf>) -> Self
pub fn tool_registry(self, registry: ToolRegistry) -> Self
pub fn default_run_config(self, config: RunConfig) -> Self
pub fn build(self) -> Result<Runner, String>
Trait Implementations§
Source§impl Default for RunnerBuilder
impl Default for RunnerBuilder
Source§fn default() -> RunnerBuilder
fn default() -> RunnerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerBuilder
impl !UnwindSafe for RunnerBuilder
impl Freeze for RunnerBuilder
impl Send for RunnerBuilder
impl Sync for RunnerBuilder
impl Unpin for RunnerBuilder
impl UnsafeUnpin for RunnerBuilder
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.