pub struct ReActAgentConfig {
pub system_prompt: Option<String>,
pub max_steps: Option<usize>,
pub handle_tool_errors: bool,
}Expand description
Configuration for creating a ReAct agent.
Fields§
§system_prompt: Option<String>The system prompt to use.
max_steps: Option<usize>Maximum number of steps before the agent stops.
handle_tool_errors: boolWhether to handle tool errors gracefully.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReActAgentConfig
impl RefUnwindSafe for ReActAgentConfig
impl Send for ReActAgentConfig
impl Sync for ReActAgentConfig
impl Unpin for ReActAgentConfig
impl UnsafeUnpin for ReActAgentConfig
impl UnwindSafe for ReActAgentConfig
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