pub struct AgentBuilder<M: CompletionModel, T: Tool> { /* private fields */ }Expand description
Builder for constructing an Agent.
Implementations§
Source§impl<M: CompletionModel, T: Tool> AgentBuilder<M, T>
impl<M: CompletionModel, T: Tool> AgentBuilder<M, T>
Sourcepub fn temperature(self, t: f64) -> Self
pub fn temperature(self, t: f64) -> Self
Set the temperature.
Sourcepub fn max_tokens(self, n: u32) -> Self
pub fn max_tokens(self, n: u32) -> Self
Set the max tokens.
Auto Trait Implementations§
impl<M, T> Freeze for AgentBuilder<M, T>where
M: Freeze,
impl<M, T> RefUnwindSafe for AgentBuilder<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for AgentBuilder<M, T>
impl<M, T> Sync for AgentBuilder<M, T>
impl<M, T> Unpin for AgentBuilder<M, T>
impl<M, T> UnsafeUnpin for AgentBuilder<M, T>where
M: UnsafeUnpin,
impl<M, T> UnwindSafe for AgentBuilder<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