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