pub struct Agent<M> { /* private fields */ }Expand description
A configured LLM agent.
Build one with Agent::builder then call prompt
or chat.
Implementations§
Source§impl<M: CompletionModel> Agent<M>
impl<M: CompletionModel> Agent<M>
Sourcepub fn builder(model: M) -> AgentBuilder<M>
pub fn builder(model: M) -> AgentBuilder<M>
Create a builder for this model.
Auto Trait Implementations§
impl<M> !RefUnwindSafe for Agent<M>
impl<M> !Send for Agent<M>
impl<M> !Sync for Agent<M>
impl<M> !UnwindSafe for Agent<M>
impl<M> Freeze for Agent<M>where
M: Freeze,
impl<M> Unpin for Agent<M>where
M: Unpin,
impl<M> UnsafeUnpin for Agent<M>where
M: UnsafeUnpin,
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