pub struct AgentSettings {Show 13 fields
pub max_tool_iterations: usize,
pub request_timeout_ms: u64,
pub memory_window_size: usize,
pub max_prompt_chars: usize,
pub mode: String,
pub hooks: HookSettings,
pub parallel_tools: bool,
pub tool_dispatcher: String,
pub compact_context: bool,
pub loop_detection_no_progress_threshold: usize,
pub loop_detection_ping_pong_cycles: usize,
pub loop_detection_failure_streak: usize,
pub system_prompt: Option<String>,
}Fields§
§max_tool_iterations: usize§request_timeout_ms: u64§memory_window_size: usize§max_prompt_chars: usize§mode: String§hooks: HookSettings§parallel_tools: bool§tool_dispatcher: String§compact_context: bool§loop_detection_no_progress_threshold: usize§loop_detection_ping_pong_cycles: usize§loop_detection_failure_streak: usize§system_prompt: Option<String>Optional system prompt sent to the LLM at the start of each conversation.
Implementations§
Source§impl AgentSettings
impl AgentSettings
pub fn is_dev_mode(&self) -> bool
Trait Implementations§
Source§impl Clone for AgentSettings
impl Clone for AgentSettings
Source§fn clone(&self) -> AgentSettings
fn clone(&self) -> AgentSettings
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 Debug for AgentSettings
impl Debug for AgentSettings
Source§impl Default for AgentSettings
impl Default for AgentSettings
Source§impl<'de> Deserialize<'de> for AgentSettingswhere
AgentSettings: Default,
impl<'de> Deserialize<'de> for AgentSettingswhere
AgentSettings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentSettings
impl RefUnwindSafe for AgentSettings
impl Send for AgentSettings
impl Sync for AgentSettings
impl Unpin for AgentSettings
impl UnsafeUnpin for AgentSettings
impl UnwindSafe for AgentSettings
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