ContextTraceEmitter
Defined in the trace module.Rust AI Agent SDK Context trace emitter.
Fields
| Name | Type | Description |
|---|---|---|
sink | Box<dyn ContextTraceSinkProtocol> | - |
Methods
new
| Name | Type |
|---|---|
sink | impl ContextTraceSinkProtocol + 'static |
noop
with_list_sink
emit
| Name | Type |
|---|---|
event | ContextEvent |
events
clear
agent_start
| Name | Type |
|---|---|
agent_id | &str |
agent_name | &str |
input | &str |
agent_end
| Name | Type |
|---|---|
agent_id | &str |
agent_name | &str |
output | &str |
duration_ms | u64 |
tool_start
| Name | Type |
|---|---|
tool_name | &str |
args | serde_json::Value |
tool_end
| Name | Type |
|---|---|
tool_name | &str |
result | serde_json::Value |
duration_ms | u64 |
Source
View on GitHub
praisonai/src/trace/mod.rs at line 629
