Skip to main content

Module environment

Module environment 

Source
Expand description

The Agent Engine deployment environment (--env NAME=VALUE, --default_env).

--env values are kept as OsStrings (the argument bytes) so a value that is not valid UTF-8 reaches AgentEngineFlags::environment_variables and gets ADK’s error text. No error names an entry’s name or value: a malformed entry may hold a secret.

Structs§

EnvVar
One variable of the deployment environment. Debug shows the name only: values may be secrets.

Constants§

DEFAULT_ENV_HELP
The help text of --default_env.
ENV_HELP
The help text of --env.

Functions§

deployment_spec
The JSON form of the ReasoningEngineSpec.DeploymentSpec holding vars as env: an empty list is left out ({}) and so is an empty value.
register_environment_flags
Registers the environment flags: --env (repeatable, one value per occurrence, kept verbatim — no comma splitting) and --default_env (default true; a value only as --default_env=<v>).