pub struct AgentBuilder<M> { /* private fields */ }Expand description
Fluent builder for Agent.
Implementations§
Source§impl<M: CompletionModel> AgentBuilder<M>
impl<M: CompletionModel> AgentBuilder<M>
Sourcepub fn temperature(self, temperature: f64) -> Self
pub fn temperature(self, temperature: f64) -> Self
Set the sampling temperature.
Sourcepub fn max_tokens(self, max_tokens: u32) -> Self
pub fn max_tokens(self, max_tokens: u32) -> Self
Set the maximum tokens to generate.
Sourcepub fn max_iterations(self, n: u32) -> Self
pub fn max_iterations(self, n: u32) -> Self
Override the default iteration cap (10) for the tool-call loop.
Auto Trait Implementations§
impl<M> !RefUnwindSafe for AgentBuilder<M>
impl<M> !Send for AgentBuilder<M>
impl<M> !Sync for AgentBuilder<M>
impl<M> !UnwindSafe for AgentBuilder<M>
impl<M> Freeze for AgentBuilder<M>where
M: Freeze,
impl<M> Unpin for AgentBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for AgentBuilder<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