pub struct MockLlmProvider { /* private fields */ }Implementations§
Source§impl MockLlmProvider
impl MockLlmProvider
pub fn scripted(actions: Vec<AgentAction>) -> MockLlmProvider
pub fn dynamic<F>(responder: F) -> MockLlmProvider
pub fn observed_inputs(&self) -> Vec<ProviderRequest>
Trait Implementations§
Source§impl Clone for MockLlmProvider
impl Clone for MockLlmProvider
Source§fn clone(&self) -> MockLlmProvider
fn clone(&self) -> MockLlmProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl LlmProvider for MockLlmProvider
impl LlmProvider for MockLlmProvider
fn generate_action<'life0, 'async_trait>(
&'life0 self,
input: ProviderRequest,
) -> Pin<Box<dyn Future<Output = Result<ProviderDecision, ProviderError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MockLlmProvider: 'async_trait,
Auto Trait Implementations§
impl Freeze for MockLlmProvider
impl !RefUnwindSafe for MockLlmProvider
impl Send for MockLlmProvider
impl Sync for MockLlmProvider
impl Unpin for MockLlmProvider
impl UnsafeUnpin for MockLlmProvider
impl !UnwindSafe for MockLlmProvider
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