Skip to main content

BeforeAgentCallback

Trait BeforeAgentCallback 

Source
pub trait BeforeAgentCallback: Send + Sync {
    // Required method
    fn on_before_agent(&self, ctx: &AgentCallbackContext);
}
Expand description

Callback invoked before agent execution starts

Use this for:

  • Starting spans/traces
  • Logging agent invocation
  • Recording audit events

Required Methods§

Source

fn on_before_agent(&self, ctx: &AgentCallbackContext)

Called before an agent starts executing

Implementors§