pub struct ConfiguredAgent<M: Model + 'static> {
pub config: AgentConfig,
pub model: M,
}
Expand description
A configurable agent that calls the model and optionally executes tools.
Fields§
§config: AgentConfig
§model: M
Implementations§
Trait Implementations§
Source§impl<M: Model + 'static> Agent for ConfiguredAgent<M>
impl<M: Model + 'static> Agent for ConfiguredAgent<M>
Auto Trait Implementations§
impl<M> Freeze for ConfiguredAgent<M>where
M: Freeze,
impl<M> !RefUnwindSafe for ConfiguredAgent<M>
impl<M> Send for ConfiguredAgent<M>
impl<M> Sync for ConfiguredAgent<M>
impl<M> Unpin for ConfiguredAgent<M>where
M: Unpin,
impl<M> !UnwindSafe for ConfiguredAgent<M>
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