pub struct AgentExecutorConfig {
pub max_iterations: usize,
pub session_timeout: Option<Duration>,
pub default_model: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
}Expand description
Agent execution configuration
Fields§
§max_iterations: usizeMaximum tool iterations per message
session_timeout: Option<Duration>Session timeout (optional)
default_model: Option<String>Default model to use
temperature: Option<f32>Temperature for LLM calls
max_tokens: Option<u32>Max tokens for LLM responses
Implementations§
Source§impl AgentExecutorConfig
impl AgentExecutorConfig
pub fn new() -> AgentExecutorConfig
pub fn with_max_iterations(self, max: usize) -> AgentExecutorConfig
pub fn with_model(self, model: impl Into<String>) -> AgentExecutorConfig
pub fn with_temperature(self, temp: f32) -> AgentExecutorConfig
Trait Implementations§
Source§impl Clone for AgentExecutorConfig
impl Clone for AgentExecutorConfig
Source§fn clone(&self) -> AgentExecutorConfig
fn clone(&self) -> AgentExecutorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AgentExecutorConfig
impl Default for AgentExecutorConfig
Source§fn default() -> AgentExecutorConfig
fn default() -> AgentExecutorConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentExecutorConfig
impl RefUnwindSafe for AgentExecutorConfig
impl Send for AgentExecutorConfig
impl Sync for AgentExecutorConfig
impl Unpin for AgentExecutorConfig
impl UnsafeUnpin for AgentExecutorConfig
impl UnwindSafe for AgentExecutorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage