pub struct AgentOptions {
pub model: String,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub max_iterations: u32,
pub max_tool_result_chars: usize,
}Fields§
§model: String§temperature: Option<f32>§max_tokens: Option<u32>§max_iterations: u32Hard cap on assistant ↔ tool round-trips inside a single
Agent::run call. Hermes calls this the iteration budget; matching
that vocabulary makes the port read like the original.
max_tool_result_chars: usizeCap on tool-result content length in characters. Anything longer is
truncated with a …[truncated tool output] suffix before being fed
back to the model. Individual tools may further restrict themselves;
this is a backstop. 0 disables truncation.
Trait Implementations§
Source§impl Clone for AgentOptions
impl Clone for AgentOptions
Source§fn clone(&self) -> AgentOptions
fn clone(&self) -> AgentOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentOptions
impl Debug for AgentOptions
Auto Trait Implementations§
impl Freeze for AgentOptions
impl RefUnwindSafe for AgentOptions
impl Send for AgentOptions
impl Sync for AgentOptions
impl Unpin for AgentOptions
impl UnsafeUnpin for AgentOptions
impl UnwindSafe for AgentOptions
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