pub struct KernelMessageHandlerBuilder { /* private fields */ }Expand description
Builder for KernelMessageHandler that automates tool registration and optional components.
Implementations§
Source§impl KernelMessageHandlerBuilder
impl KernelMessageHandlerBuilder
Sourcepub fn with_tools<F, I>(self, tools: I) -> Result<Self, ToolError>where
F: Copy + 'static,
I: IntoIterator<Item = F>,
pub fn with_tools<F, I>(self, tools: I) -> Result<Self, ToolError>where
F: Copy + 'static,
I: IntoIterator<Item = F>,
Sourcepub fn with_memory(self, memory: Arc<MemoryBus>) -> Self
pub fn with_memory(self, memory: Arc<MemoryBus>) -> Self
Configures the memory bus used to persist call transcripts.
Sourcepub fn with_policy(self, policy: Arc<dyn PolicyEngine>) -> Self
pub fn with_policy(self, policy: Arc<dyn PolicyEngine>) -> Self
Installs or replaces the policy engine.
Sourcepub fn with_policy_observer(self, observer: Arc<dyn PolicyObserver>) -> Self
pub fn with_policy_observer(self, observer: Arc<dyn PolicyObserver>) -> Self
Installs or replaces the policy observer.
Auto Trait Implementations§
impl Freeze for KernelMessageHandlerBuilder
impl !RefUnwindSafe for KernelMessageHandlerBuilder
impl Send for KernelMessageHandlerBuilder
impl Sync for KernelMessageHandlerBuilder
impl Unpin for KernelMessageHandlerBuilder
impl !UnwindSafe for KernelMessageHandlerBuilder
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