pub struct AgentBuilder { /* private fields */ }Expand description
Builder for Agent.
Delegates to AgentRuntimeBuilder internally.
Implementations§
Source§impl AgentBuilder
impl AgentBuilder
pub fn new() -> Self
pub fn storage(self, v: Arc<dyn Storage>) -> Self
pub fn attachment_reader(self, v: Arc<dyn AttachmentReader>) -> Self
pub fn skill_manager(self, v: Arc<SkillManager>) -> Self
pub fn metrics_collector(self, v: MetricsCollector) -> Self
pub fn config(self, v: Arc<RwLock<Config>>) -> Self
pub fn provider(self, v: Arc<dyn LLMProvider>) -> Self
pub fn default_tools(self, v: Arc<dyn ToolExecutor>) -> Self
pub fn build(self) -> Result<Agent, &'static str>
Trait Implementations§
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