pub struct Agent<M: CompletionModel, T: Tool> { /* private fields */ }Expand description
An agent: a configured LLM with preamble, tools, and context.
Built via AgentBuilder. Generic over:
M: the completion modelT: the tool type (use an enum for heterogeneous tools)
Implementations§
Source§impl<M: CompletionModel, T: Tool> Agent<M, T>
impl<M: CompletionModel, T: Tool> Agent<M, T>
Auto Trait Implementations§
impl<M, T> Freeze for Agent<M, T>where
M: Freeze,
impl<M, T> RefUnwindSafe for Agent<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for Agent<M, T>
impl<M, T> Sync for Agent<M, T>
impl<M, T> Unpin for Agent<M, T>
impl<M, T> UnsafeUnpin for Agent<M, T>where
M: UnsafeUnpin,
impl<M, T> UnwindSafe for Agent<M, T>where
M: UnwindSafe,
T: UnwindSafe,
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