nemo_relay
nemo_relay
Generated from python/nemo_relay/__init__.pyi.
Module nemo_relay.
Python bindings for the NeMo Relay runtime.
Classes
DataSchema(TypedDict)
Schema identifier attached to an event’s opaque data payload.
EventSanitizeFields(TypedDict)
Observability fields returned by mark and scope event sanitizers.
ScopeStackEntry
Immutable UUID and canonical type of one visible scope.
Methods
scope_id
scope_type
ScopeStackSnapshot
Detached root-to-top scope identities.
Methods
scopes
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_rootless_propagation_context
Capture the current causal parent without a propagation root.
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.
current_scope_stack_snapshot
Return detached root-to-top UUID/type entries, or None without a binding.
Type Aliases And Constants
EventEventMetadataEventMetadataInjectorCallbackEventMetadataScalarEventMetadataValueEventSanitizeGuardrailJsonJsonObjectJsonPrimitiveJsonValueLlmConditionalExecutionGuardrailLlmExecutionInterceptLlmRequestInterceptLlmSanitizeRequestGuardrailLlmSanitizeResponseGuardrailLlmStreamExecutionInterceptToolConditionalExecutionGuardrailToolExecutionInterceptToolRequestInterceptToolSanitizeGuardrailUnsupportedBehavior
Re-exports
AnnotatedLLMRequestAnnotatedLLMResponseAtifExporterAtofExporterAtofExporterConfigAtofExporterModeAtofStreamSinkConfigLLMAttributesLLMHandleLLMRequestLLMRequestInterceptOutcomeLlmCodecIdentityLlmExecutionContextLlmRequestContextLlmResponseContextLlmSanitizeRequestCodecLlmSanitizeRequestContextLlmSanitizeResponseCodecLlmSanitizeResponseContextLogSeverityMarkEventMetricKindMetricMeasurementMetricTemporalityMetricValueTypeOpenTelemetryConfigOpenTelemetryFileSinkConfigOpenTelemetryLogConfigOpenTelemetryLogSubscriberOpenTelemetryMetricConfigOpenTelemetryMetricSubscriberOpenTelemetryRuntimeDiagnosticOpenTelemetryRuntimeDiagnosticsOpenTelemetrySubscriberOpenTelemetryTlsConfigPendingMarkSpecPropagationContextScopeAttributesScopeEventScopeHandleScopeStackScopeTypeToolAttributesToolExecutionContextToolExecutionInterceptOutcomeToolExecutionResultToolHandleadaptivecodecsevent_metadataguardrailsinterceptsllmmodel_pricingobservabilitypii_redactionpluginresource_metricsscopescope_localsubscriberstoolstyped