class NexusSerializationContext(SerializationContext): (source)
Serialization context for Nexus operation payloads.
Callers receive this context when encoding inputs and decoding results or failures. The context is not propagated to a handler that completes an asynchronous operation. Handlers receive it when decoding inputs, encoding synchronous results, and encoding failures produced while handling a Nexus task.
A standalone operation handle retains the context used to start the operation and uses it to
decode the result, including when the start request returns an existing operation. A handle
created with temporalio.client.Client.get_nexus_operation_handle has no endpoint,
service, or operation information and therefore decodes without Nexus context.
A failure encoded by a handler is later decoded by a caller. Because some operation paths may lack this context, contextual encodings must be self-describing and decoders must continue to accept payloads encoded without context.
Warning
This API is experimental and unstable.