pub struct ModelAdapter { /* private fields */ }Expand description
Adapts an agent-models conversation client to the runtime interface.
Implementations§
Source§impl ModelAdapter
impl ModelAdapter
pub fn new(client: Arc<dyn ConversationClient>) -> Self
pub fn with_temperature(self, temperature: Option<f32>) -> Self
pub fn with_max_tokens(self, max_tokens: Option<u32>) -> Self
Trait Implementations§
Source§impl AgentModel for ModelAdapter
impl AgentModel for ModelAdapter
Auto Trait Implementations§
impl !RefUnwindSafe for ModelAdapter
impl !UnwindSafe for ModelAdapter
impl Freeze for ModelAdapter
impl Send for ModelAdapter
impl Sync for ModelAdapter
impl Unpin for ModelAdapter
impl UnsafeUnpin for ModelAdapter
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