pub struct ChatBotHarnessBuilder { /* private fields */ }Implementations§
Source§impl ChatBotHarnessBuilder
impl ChatBotHarnessBuilder
Sourcepub fn tools(self, tools: Vec<ToolDefinition>) -> Self
pub fn tools(self, tools: Vec<ToolDefinition>) -> Self
Tools the mindset can call, usually
MyTools::register_tools(&container).
Sourcepub fn container(self, container: Container) -> Self
pub fn container(self, container: Container) -> Self
The container the tools resolve from. Register a tool set’s dependencies (a fake database, say) there before building.
Sourcepub fn adapter(self, adapter: Arc<MockChatAdapter>) -> Self
pub fn adapter(self, adapter: Arc<MockChatAdapter>) -> Self
Share an adapter — to script it before building, or to reuse one across harnesses.
pub fn build(self) -> ChatBotHarness
Auto Trait Implementations§
impl !RefUnwindSafe for ChatBotHarnessBuilder
impl !UnwindSafe for ChatBotHarnessBuilder
impl Freeze for ChatBotHarnessBuilder
impl Send for ChatBotHarnessBuilder
impl Sync for ChatBotHarnessBuilder
impl Unpin for ChatBotHarnessBuilder
impl UnsafeUnpin for ChatBotHarnessBuilder
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