TraceEmitter
Defined in the protocol module.AI Agent Emitter for action trace events. Provides a high-level API for emitting trace events. Handles redaction and sink management.
Constructor
Optional[TraceSink]
No description available.
bool
default:"True"
No description available.
bool
default:"True"
No description available.
Methods
agent_start()
Emit agent start event.
agent_end()
Emit agent end event.
tool_start()
Emit tool start event.
tool_end()
Emit tool end event.
error()
Emit error event.
output()
Emit final output event.
flush()
Flush the sink.
close()
Close the sink.
Usage
Source
View on GitHub
praisonaiagents/trace/protocol.py at line 208
