processor_interface¶
AdalFlow tracing processor interface module with OpenAI Agents SDK compatibility.
This module defines the interface for processing traces and spans in AdalFlow, following OpenAI Agents SDK patterns for maximum compatibility.
References: - OpenAI Agents SDK: https://github.com/openai/openai-agents-python/blob/main/src/agents/tracing/processor_interface.py
Classes
Exports traces and spans. |
|
Interface for processing spans. |
- class TracingProcessor[source]¶
Bases:
ABC
Interface for processing spans.
- abstract on_trace_start(trace: Trace) None [source]¶
Called when a trace is started.
- Parameters:
trace – The trace that started.
- abstract on_trace_end(trace: Trace) None [source]¶
Called when a trace is finished.
- Parameters:
trace – The trace that started.
- abstract on_span_start(span: Span[Any]) None [source]¶
Called when a span is started.
- Parameters:
span – The span that started.