load(
cls,
config_path: Path | None = None,
) -> ModelConfig| Name | Type | Description |
|---|---|---|
config_path | Path | None | Default: NonePath to config file. Defaults to
~/.deepagents/config.toml. Passing a path also excludes managed
policy from this read, so production callers must pass |
Load config from file.
When called with the default path, results are cached for the
lifetime of the process. Use clear_caches() to reset.