pub struct AlloyClient { /* private fields */ }Expand description
randomly alternates between models within a single agentic loop — see https://xbow.com/blog/alloy-agents
inner clients must already be wrapped with retry (e.g. via .with_retry()); AlloyClient does not add retry itself
Implementations§
Source§impl AlloyClient
impl AlloyClient
Trait Implementations§
Source§impl LLMClientDyn for AlloyClient
impl LLMClientDyn for AlloyClient
fn completion( &self, completion: Completion, ) -> Pin<Box<dyn Future<Output = Result<CompletionResponse>> + Send + '_>>
Auto Trait Implementations§
impl !RefUnwindSafe for AlloyClient
impl !UnwindSafe for AlloyClient
impl Freeze for AlloyClient
impl Send for AlloyClient
impl Sync for AlloyClient
impl Unpin for AlloyClient
impl UnsafeUnpin for AlloyClient
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