class documentation

class AllowAllWorkerEnvVars: (source)

View In Hierarchy

Make every environment variable on the worker resolvable.

Warning

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

Pass an instance in place of a list of names:

OpenAIAgentsPlugin(resolvable_worker_env_vars=AllowAllWorkerEnvVars())

This grants far more on the sandbox form than on the hosted tool form. A sandbox manifest is written in workflow code, so allowing every name lets a workflow name any variable on the worker and have its value set inside the sandbox container, where a shell command the model composes can read it.