Get Context Emitter • AI Agent SDK
get_context_emitter: Get the current context trace emitter.
get_context_emitter
Function
</div>
This function is defined in the context_events module.
Get the current context trace emitter.
Returns a disabled NoOp emitter if not set (zero overhead). This function is safe to call from any async context or thread.
Signature
def get_context_emitter() -> 'ContextTraceEmitter'Returns
ResponseField
'ContextTraceEmitter'The current emitter or a disabled default.
Uses
ContextTraceEmitterContextNoOpSink
Source
View on GitHubpraisonaiagents/trace/context_events.py at line 65