pub struct TracingAgentHook;Expand description
日志 Hook — 将 agent 执行事件输出为 tracing 日志。
Trait Implementations§
Source§impl AgentHook for TracingAgentHook
impl AgentHook for TracingAgentHook
Source§fn before_agent(&self, ctx: &AgentHookContext)
fn before_agent(&self, ctx: &AgentHookContext)
Agent loop 执行前调用。
Source§fn after_agent(&self, snapshot: &AgentHookSnapshot)
fn after_agent(&self, snapshot: &AgentHookSnapshot)
Agent loop 执行后调用。
Source§impl Clone for TracingAgentHook
impl Clone for TracingAgentHook
Source§fn clone(&self) -> TracingAgentHook
fn clone(&self) -> TracingAgentHook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TracingAgentHook
impl RefUnwindSafe for TracingAgentHook
impl Send for TracingAgentHook
impl Sync for TracingAgentHook
impl Unpin for TracingAgentHook
impl UnsafeUnpin for TracingAgentHook
impl UnwindSafe for TracingAgentHook
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