pub struct AgentBuilder<M: Model> { /* private fields */ }Expand description
Fluent builder for Agent<M>.
Requires a model at construction. Use AgentConfig builder methods
for field configuration, then pass it via AgentBuilder::config.
Implementations§
Source§impl<M: Model> AgentBuilder<M>
impl<M: Model> AgentBuilder<M>
Sourcepub fn config(self, config: AgentConfig) -> Self
pub fn config(self, config: AgentConfig) -> Self
Set the full config, replacing all fields.
Sourcepub fn tool_tx(self, tx: ToolSender) -> Self
pub fn tool_tx(self, tx: ToolSender) -> Self
Set the tool sender for dispatching tool calls.
Auto Trait Implementations§
impl<M> Freeze for AgentBuilder<M>where
M: Freeze,
impl<M> RefUnwindSafe for AgentBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for AgentBuilder<M>where
M: Send,
impl<M> Sync for AgentBuilder<M>where
M: Sync,
impl<M> Unpin for AgentBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for AgentBuilder<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for AgentBuilder<M>where
M: UnwindSafe,
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