pub struct AgentConfig {
pub system_prompt: String,
pub max_steps: usize,
pub history_limits: HistoryLimits,
}Expand description
Settings of an AgentRuntime.
Fields§
§system_prompt: String§max_steps: usizeMost model requests in one turn before it fails with AgentError::StepLimit.
history_limits: HistoryLimitsTrait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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