Reload selected settings from environment variables and project files.
This refreshes only fields that are expected to change at runtime (API keys, Google Cloud project, project root, shell allow-list, and LangSmith tracing project).
Runtime model state (model_name, model_provider,
model_context_limit) and the original user LangSmith project
(user_langchain_project) are intentionally preserved -- they are
not in reloadable_fields and are never touched by this method.
.env files are loaded with override=False, so shell-exported
variables always take precedence. To override a shell-exported key
from .env, use the DEEPAGENTS_CLI_ prefix (e.g.
DEEPAGENTS_CLI_OPENAI_API_KEY).
| Name | Type | Description |
|---|---|---|
start_path | Path | None | Default: NoneDirectory to start project detection from (defaults to cwd). |