class documentation

class TemporalWorkerEnvValue(EnvValue): (source)

View In Hierarchy

A sandbox environment variable whose value is read on the Temporal Worker.

Warning

This class is experimental and may change in future versions. Use with caution in production environments.

Put one in a sandbox manifest's Environment in place of the value itself. Only the name travels in the manifest, and the worker reads the value when the sandbox environment is needed. Every worker that runs sandbox activities must set the variable and name it in OpenAIAgentsPlugin(resolvable_worker_env_vars=[...]).

Async Method resolve Return the value read from the worker's environment.
Class Variable name Name of the environment variable to read on the worker.
Class Variable type Undocumented
async def resolve(self) -> str: (source)

Return the value read from the worker's environment.

Raises
ApplicationErrorIf the variable is not resolvable on this worker, is unset or empty, or if called from workflow code.

Name of the environment variable to read on the worker.

type: Literal['temporal.worker_env_value'] = (source)

Undocumented