pub struct AgentBuilder<M>where
M: ModelAdapter,{ /* private fields */ }Implementations§
Source§impl<M> AgentBuilder<M>where
M: ModelAdapter,
impl<M> AgentBuilder<M>where
M: ModelAdapter,
pub fn model(self, model: M) -> Self
pub fn tools(self, tools: ToolRegistry) -> Self
pub fn permissions(self, permissions: impl PermissionChecker + 'static) -> Self
pub fn resources(self, resources: impl ToolResources + 'static) -> Self
pub fn cancellation(self, handle: CancellationHandle) -> Self
pub fn compaction(self, config: CompactionConfig) -> Self
pub fn observer(self, observer: impl LoopObserver + 'static) -> Self
pub fn build(self) -> Result<Agent<M>, LoopError>
Trait Implementations§
Source§impl<M> Default for AgentBuilder<M>where
M: ModelAdapter,
impl<M> Default for AgentBuilder<M>where
M: ModelAdapter,
Auto Trait Implementations§
impl<M> Freeze for AgentBuilder<M>where
M: Freeze,
impl<M> !RefUnwindSafe for AgentBuilder<M>
impl<M> Send for AgentBuilder<M>
impl<M> !Sync for AgentBuilder<M>
impl<M> Unpin for AgentBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for AgentBuilder<M>where
M: UnsafeUnpin,
impl<M> !UnwindSafe for AgentBuilder<M>
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