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

python
def get_context_emitter() -> 'ContextTraceEmitter'

Returns

ResponseField 'ContextTraceEmitter'

The current emitter or a disabled default.

Uses

  • ContextTraceEmitter
  • ContextNoOpSink

Source

View on GitHub

praisonaiagents/trace/context_events.py at line 65


Related Documentation