pub struct PluginBuilder { /* private fields */ }Expand description
Implementations§
Source§impl PluginBuilder
impl PluginBuilder
Sourcepub fn on_user_message(self, callback: OnUserMessageCallback) -> Self
pub fn on_user_message(self, callback: OnUserMessageCallback) -> Self
Set the on_user_message callback.
Sourcepub fn on_event(self, callback: OnEventCallback) -> Self
pub fn on_event(self, callback: OnEventCallback) -> Self
Set the on_event callback.
Sourcepub fn before_run(self, callback: BeforeRunCallback) -> Self
pub fn before_run(self, callback: BeforeRunCallback) -> Self
Set the before_run callback.
Sourcepub fn after_run(self, callback: AfterRunCallback) -> Self
pub fn after_run(self, callback: AfterRunCallback) -> Self
Set the after_run callback.
Sourcepub fn before_agent(self, callback: BeforeAgentCallback) -> Self
pub fn before_agent(self, callback: BeforeAgentCallback) -> Self
Set the before_agent callback.
Sourcepub fn after_agent(self, callback: AfterAgentCallback) -> Self
pub fn after_agent(self, callback: AfterAgentCallback) -> Self
Set the after_agent callback.
Sourcepub fn before_model(self, callback: BeforeModelCallback) -> Self
pub fn before_model(self, callback: BeforeModelCallback) -> Self
Set the before_model callback.
Sourcepub fn after_model(self, callback: AfterModelCallback) -> Self
pub fn after_model(self, callback: AfterModelCallback) -> Self
Set the after_model callback.
Sourcepub fn on_model_error(self, callback: OnModelErrorCallback) -> Self
pub fn on_model_error(self, callback: OnModelErrorCallback) -> Self
Set the on_model_error callback.
Sourcepub fn before_tool(self, callback: BeforeToolCallback) -> Self
pub fn before_tool(self, callback: BeforeToolCallback) -> Self
Set the before_tool callback.
Sourcepub fn after_tool(self, callback: AfterToolCallback) -> Self
pub fn after_tool(self, callback: AfterToolCallback) -> Self
Set the after_tool callback.
Sourcepub fn on_tool_error(self, callback: OnToolErrorCallback) -> Self
pub fn on_tool_error(self, callback: OnToolErrorCallback) -> Self
Set the on_tool_error callback.
Auto Trait Implementations§
impl Freeze for PluginBuilder
impl !RefUnwindSafe for PluginBuilder
impl Send for PluginBuilder
impl Sync for PluginBuilder
impl Unpin for PluginBuilder
impl !UnwindSafe for PluginBuilder
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