pub struct AgentBuilder { /* private fields */ }Implementations§
Source§impl AgentBuilder
impl AgentBuilder
pub fn new(client: Arc<dyn LlmClient>) -> Self
pub fn system_prompt(self, system_prompt: impl Into<String>) -> Self
pub fn enable_thought(self, enable: bool) -> Self
pub fn enable_thinking(self, enable: bool) -> Self
pub fn tool_timeout(self, timeout_ms: u64) -> Self
pub fn max_tool_output_chars(self, max_chars: usize) -> Self
pub fn register_tool(self, tool: impl Tool + 'static) -> Self
pub fn register_tool_arc(self, tool: Arc<dyn Tool>) -> Self
pub fn approval_handler(self, handler: Arc<dyn ApprovalHandler>) -> Self
pub fn tool_policy(self, policy: Arc<dyn ToolPolicy>) -> Self
pub fn middleware(self, mw: impl Middleware + 'static) -> Self
pub fn context_window(self, max_tokens: usize) -> Self
pub fn context_window_manager(self, manager: ContextWindowManager) -> Self
pub fn response_format(self, format: ResponseFormat) -> Self
pub fn llm_retry(self, retry: RetryConfig) -> Self
pub fn session_store(self, store: Arc<dyn SessionStore>) -> Self
pub fn register_skill(self, skill: impl Skill + 'static) -> Self
pub fn skill_prompter(self, prompter: Arc<dyn SkillPrompter>) -> Self
pub fn disable_skill_prompt_injection(self) -> Self
pub fn skill_detail_tool_name(self, name: impl Into<String>) -> Self
pub fn error_recovery(self, recovery: Arc<dyn ToolErrorRecovery>) -> Self
pub fn build(self) -> AgentRuntime
Auto Trait Implementations§
impl Freeze for AgentBuilder
impl !RefUnwindSafe for AgentBuilder
impl Send for AgentBuilder
impl Sync for AgentBuilder
impl Unpin for AgentBuilder
impl UnsafeUnpin for AgentBuilder
impl !UnwindSafe for AgentBuilder
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