pub struct NoopExtension;Expand description
A minimal extension that does nothing — useful as a template and for tests.
Trait Implementations§
Source§impl Extension for NoopExtension
impl Extension for NoopExtension
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description.
Source§fn manifest(&self) -> ExtensionManifest
fn manifest(&self) -> ExtensionManifest
Return the extension manifest for metadata, permissions, and config. Read more
Source§fn register_tools(&self) -> Vec<Arc<dyn AgentTool>>
fn register_tools(&self) -> Vec<Arc<dyn AgentTool>>
Return custom tools this extension contributes.
Source§fn register_commands(&self) -> Vec<Command>
fn register_commands(&self) -> Vec<Command>
Return custom slash-commands this extension contributes.
Source§fn on_load(&self, _ctx: &ExtensionContext)
fn on_load(&self, _ctx: &ExtensionContext)
Called once when the extension is loaded and before any other hooks. Read more
Source§fn on_message_sent(&self, _msg: &str)
fn on_message_sent(&self, _msg: &str)
Called after a user message is sent to the agent.
Source§fn on_message_received(&self, _msg: &str)
fn on_message_received(&self, _msg: &str)
Called when an assistant message is received.
Source§fn on_tool_call(&self, _tool: &str, _params: &Value)
fn on_tool_call(&self, _tool: &str, _params: &Value)
Called before a tool is executed. The tool name and raw parameters
are provided. This can be used for logging, auditing, or preprocessing.
Source§fn on_tool_result(&self, _tool: &str, _result: &AgentToolResult)
fn on_tool_result(&self, _tool: &str, _result: &AgentToolResult)
Called after a tool finishes execution.
Source§fn on_session_start(&self, _session_id: &str)
fn on_session_start(&self, _session_id: &str)
Called when a new session starts.
Source§fn on_session_end(&self, _session_id: &str)
fn on_session_end(&self, _session_id: &str)
Called when a session ends.
Source§fn on_settings_changed(&self, _settings: &Settings)
fn on_settings_changed(&self, _settings: &Settings)
Called when settings have changed (e.g. user ran
oxi config).Source§fn on_event(&self, _event: &AgentEvent)
fn on_event(&self, _event: &AgentEvent)
Called when the agent emits an event. Read more
Auto Trait Implementations§
impl Freeze for NoopExtension
impl RefUnwindSafe for NoopExtension
impl Send for NoopExtension
impl Sync for NoopExtension
impl Unpin for NoopExtension
impl UnsafeUnpin for NoopExtension
impl UnwindSafe for NoopExtension
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more