nemo_relay
nemo_relay
Generated from python/nemo_relay/__init__.pyi.
Module nemo_relay.
Python bindings for the NeMo Relay runtime.
Classes
EventSanitizeFields(TypedDict)
Observability fields returned by mark and scope event sanitizers.
Functions
get_scope_stack
Return the current task’s active scope stack.
scope_stack_active
Report whether the current context already owns a scope stack.
propagate_scope_to_thread
Capture the active scope stack for use in another thread.
create_scope_stack
Create a new isolated scope stack.
capture_propagation_context
Capture the current Relay causal parent for application-managed transport.
capture_propagation_context_with_root
Capture the current parent with an optional stable application session root.
capture_traceparent
Capture the current Relay context as a W3C traceparent value.
create_scope_stack_from_propagation
Create an isolated stack seeded from a received propagation context.
fork_asyncio_context
Create an asyncio child context with an isolated Relay scope stack.
use_scope_stack
Temporarily install stack in the current Python context.
set_thread_scope_stack
Install a scope stack into the current thread’s native runtime context.
Type Aliases And Constants
EventEventSanitizeGuardrailJsonJsonObjectJsonPrimitiveJsonValueLlmConditionalExecutionGuardrailLlmExecutionInterceptLlmRequestInterceptLlmSanitizeRequestGuardrailLlmSanitizeResponseGuardrailLlmStreamExecutionInterceptToolConditionalExecutionGuardrailToolExecutionInterceptToolRequestInterceptToolSanitizeGuardrailUnsupportedBehavior
Re-exports
AnnotatedLLMRequestAnnotatedLLMResponseAtifExporterAtofExporterAtofExporterConfigAtofExporterModeAtofStreamSinkConfigLLMAttributesLLMHandleLLMRequestLLMRequestInterceptOutcomeLlmCodecIdentityLlmSanitizeRequestCodecLlmSanitizeRequestContextLlmSanitizeResponseCodecLlmSanitizeResponseContextMarkEventOpenTelemetryConfigOpenTelemetrySubscriberPendingMarkSpecPropagationContextScopeAttributesScopeEventScopeHandleScopeStackScopeTypeToolAttributesToolExecutionInterceptOutcomeToolExecutionResultToolHandleadaptivecodecsguardrailsinterceptsllmmodel_pricingobservabilitypii_redactionpluginscopescope_localsubscriberstoolstyped