Skip to content

Respect ADK_DISABLE_LOAD_DOTENV across the project #4018

@Spikhalskiy

Description

@Spikhalskiy

Is your feature request related to a problem? Please describe.
adk web forces loading for .env with override=True.
I want to have a default value specified in .env and pass custom values with an environment variable, but it's not possible
because ADK forces override=True into load_dotenv in load_dotenv_for_agent.

Describe the solution you'd like
One of the possible solutions is already implemented in #3228
The check was added in one place only and fixed the problem only for 'adk run'.
It would be good if all ways of running ADK respected the flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core[Component] This issue is related to the core interface and implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions