pub struct InMemoryResolver { /* private fields */ }Implementations§
Source§impl InMemoryResolver
impl InMemoryResolver
pub fn new(primary: impl Into<String>) -> Self
pub fn with_defaults(self, defaults: ModelConfigEntry) -> Self
pub fn with_fallback_model(self, model: impl Into<String>) -> Self
pub fn insert_agent(&mut self, name: impl Into<String>, entry: ModelConfigEntry)
pub fn insert_environment( &mut self, name: impl Into<String>, entry: ModelConfigEntry, )
pub fn insert_utility( &mut self, name: impl Into<String>, entry: ModelConfigEntry, )
pub fn set_circuit_breaker(&mut self, config: CircuitBreakerConfig)
Trait Implementations§
Source§impl Clone for InMemoryResolver
impl Clone for InMemoryResolver
Source§fn clone(&self) -> InMemoryResolver
fn clone(&self) -> InMemoryResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryResolver
impl Debug for InMemoryResolver
Source§impl ModelConfigResolver for InMemoryResolver
impl ModelConfigResolver for InMemoryResolver
fn resolve_model_config( &self, agent_name: &str, requested_model: Option<&str>, environment: Option<&str>, ) -> ResolvedModelConfig
fn resolve_utility_config( &self, utility_name: &str, environment: Option<&str>, ) -> ResolvedModelConfig
fn circuit_breaker_config( &self, _environment: Option<&str>, ) -> CircuitBreakerConfig
Auto Trait Implementations§
impl Freeze for InMemoryResolver
impl RefUnwindSafe for InMemoryResolver
impl Send for InMemoryResolver
impl Sync for InMemoryResolver
impl Unpin for InMemoryResolver
impl UnwindSafe for InMemoryResolver
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