pub struct NoOpObserver;Expand description
A no-op observer used as the default when the agent is constructed without one.
Trait Implementations§
Source§impl Observer for NoOpObserver
impl Observer for NoOpObserver
Source§fn on_step_start(&self, _ctx: &StepContext)
fn on_step_start(&self, _ctx: &StepContext)
Called when
Agent::step begins.Source§fn on_tool_start(&self, _call: &ToolCall)
fn on_tool_start(&self, _call: &ToolCall)
Called before each tool dispatch inside the step loop.
Source§fn on_tool_end(&self, _call: &ToolCall, _result: &ToolResult)
fn on_tool_end(&self, _call: &ToolCall, _result: &ToolResult)
Called after each tool dispatch completes, with the result.
Source§fn on_step_end(&self, _response: &Message)
fn on_step_end(&self, _response: &Message)
Called when the step loop terminates with a final assistant message.
Source§fn on_step_error(&self, _error: &str)
fn on_step_error(&self, _error: &str)
Called if the step loop errors out before producing a final message.
Source§fn should_dispatch(&self, _call: &ToolCall) -> Disposition
fn should_dispatch(&self, _call: &ToolCall) -> Disposition
v0.3 C2 — policy gate fired BEFORE every tool dispatch. Read more
Auto Trait Implementations§
impl Freeze for NoOpObserver
impl RefUnwindSafe for NoOpObserver
impl Send for NoOpObserver
impl Sync for NoOpObserver
impl Unpin for NoOpObserver
impl UnsafeUnpin for NoOpObserver
impl UnwindSafe for NoOpObserver
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