Trace Sink Protocol • AI Agent SDK
TraceSinkProtocol: Protocol for trace event sinks.
TraceSinkProtocol
Defined in the protocol module.
AI Agent
Protocol for trace event sinks.
Implementations receive action events and handle them (e.g., print to stdout, write to file, send to server).
Naming follows AGENTS.md convention: XProtocol for interfaces.
Methods
emit()
Emit an action event.
flush()Flush any buffered events.
close()Close the sink and release resources.
Source
View on GitHubpraisonaiagents/trace/protocol.py at line 89