pub struct SimpleAgentsClientBuilder { /* private fields */ }Expand description
Builder for SimpleAgentsClient.
Implementations§
Source§impl SimpleAgentsClientBuilder
impl SimpleAgentsClientBuilder
Sourcepub fn with_provider(self, provider: Arc<dyn Provider>) -> Self
pub fn with_provider(self, provider: Arc<dyn Provider>) -> Self
Register a provider.
Sourcepub fn with_providers(self, providers: Vec<Arc<dyn Provider>>) -> Self
pub fn with_providers(self, providers: Vec<Arc<dyn Provider>>) -> Self
Register multiple providers at once.
Sourcepub fn with_routing_mode(self, mode: RoutingMode) -> Self
pub fn with_routing_mode(self, mode: RoutingMode) -> Self
Configure routing mode.
Sourcepub fn with_cache(self, cache: Arc<dyn Cache>) -> Self
pub fn with_cache(self, cache: Arc<dyn Cache>) -> Self
Configure response cache.
Sourcepub fn with_cache_ttl(self, ttl: Duration) -> Self
pub fn with_cache_ttl(self, ttl: Duration) -> Self
Configure cache TTL.
Sourcepub fn with_healing_settings(self, settings: HealingSettings) -> Self
pub fn with_healing_settings(self, settings: HealingSettings) -> Self
Configure healing settings.
Sourcepub fn with_middleware(self, middleware: Arc<dyn Middleware>) -> Self
pub fn with_middleware(self, middleware: Arc<dyn Middleware>) -> Self
Register a middleware hook.
Sourcepub fn build(self) -> Result<SimpleAgentsClient>
pub fn build(self) -> Result<SimpleAgentsClient>
Build the client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleAgentsClientBuilder
impl !RefUnwindSafe for SimpleAgentsClientBuilder
impl Send for SimpleAgentsClientBuilder
impl Sync for SimpleAgentsClientBuilder
impl Unpin for SimpleAgentsClientBuilder
impl UnsafeUnpin for SimpleAgentsClientBuilder
impl !UnwindSafe for SimpleAgentsClientBuilder
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