pub struct AgentConfigBuilder { /* private fields */ }Expand description
Builder for AgentConfig
Implementations§
Source§impl AgentConfigBuilder
impl AgentConfigBuilder
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn tools(self, tools: Arc<ToolRegistry>) -> Self
pub fn max_tool_iterations(self, max: usize) -> Self
pub fn tool_loop_detection(self, config: ToolLoopDetectionConfig) -> Self
pub fn disable_tool_loop_detection(self) -> Self
pub fn build(self) -> AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfigBuilder
impl !RefUnwindSafe for AgentConfigBuilder
impl Send for AgentConfigBuilder
impl Sync for AgentConfigBuilder
impl Unpin for AgentConfigBuilder
impl !UnwindSafe for AgentConfigBuilder
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