Skip to main content

ContextEvent

Defined in the trace module.
Rust AI Agent SDK A context event for replay/debugging.

Fields

Methods

new

Create a new context event. Parameters:

agent

Set agent info. Parameters:

tool

Set tool name. Parameters:

input

Set input. Parameters:

output

Set output. Parameters:

error

Set error. Parameters:

duration_ms

Set duration. Parameters:

metadata

Add metadata. Parameters:

Source

View on GitHub

praisonai/src/trace/mod.rs at line 486

Rust Context Management

Rust Token Management