Helpers for reading and mutating llm_core.toml files.
The editor focuses on the project-level file but accepts custom paths so callers (mix tasks, tests) can operate on ad-hoc configs without touching user data.
Summary
Functions
Returns the default path to the project-level llm_core.toml file.
Removes the value at the given key path from config.
Sets a nested value in config at the given key path.
Reads and decodes the TOML configuration file at path.
Reads the config at path, applies the transformation function fun, and
writes the result back.
Encodes map as TOML and writes it to path, creating parent directories
as needed.
Functions
@spec default_path() :: String.t()
Returns the default path to the project-level llm_core.toml file.
Removes the value at the given key path from config.
Sets a nested value in config at the given key path.
Creates intermediate maps as needed.
Reads and decodes the TOML configuration file at path.
Returns {:ok, map()} with the parsed contents, or {:ok, %{}} if the
file does not exist.
Reads the config at path, applies the transformation function fun, and
writes the result back.
Returns {:ok, new_config} on success.
Encodes map as TOML and writes it to path, creating parent directories
as needed.