pub struct AgentBuilder<T: AgentDeriveT + AgentExecutor> { /* private fields */ }Expand description
Builder for creating BaseAgent instances from AgentDeriveT implementations
Implementations§
Source§impl<T: AgentDeriveT + AgentExecutor> AgentBuilder<T>
impl<T: AgentDeriveT + AgentExecutor> AgentBuilder<T>
Sourcepub fn with_llm(self, llm: Arc<dyn LLMProvider>) -> Self
pub fn with_llm(self, llm: Arc<dyn LLMProvider>) -> Self
Set the LLM provider
Sourcepub fn with_memory(self, memory: Box<dyn MemoryProvider>) -> Self
pub fn with_memory(self, memory: Box<dyn MemoryProvider>) -> Self
Set the memory provider
pub fn subscribe_topic<S: Into<String>>(self, topic: S) -> Self
pub fn runtime(self, runtime: Arc<dyn Runtime>) -> Self
Auto Trait Implementations§
impl<T> Freeze for AgentBuilder<T>where
T: Freeze,
impl<T> !RefUnwindSafe for AgentBuilder<T>
impl<T> Send for AgentBuilder<T>
impl<T> Sync for AgentBuilder<T>
impl<T> Unpin for AgentBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for AgentBuilder<T>
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