-
Notifications
You must be signed in to change notification settings - Fork 3
Implement config loading from TOML with env overrides #10
Copy link
Copy link
Closed
Labels
featureNew functionalityNew functionalityinfraProject infrastructure and toolingProject infrastructure and tooling
Description
Description
Load application configuration from TOML file with environment variable overrides.
Parent: #2
Branch
feat/m1/config
Files
crates/zeph-core/src/config.rs— Config struct, load logiccrates/zeph-core/src/lib.rs— exportscrates/zeph-core/Cargo.toml— add serde, toml depsconfig/default.toml— default configuration
Config Structure
[agent]
name = "Zeph"
[llm]
provider = "ollama"
base_url = "http://localhost:11434"
model = "mistral:7b"
[skills]
paths = ["./skills"]
[memory]
sqlite_path = "./data/zeph.db"
history_limit = 50Environment Overrides
ZEPH_LLM_PROVIDER-> llm.providerZEPH_LLM_BASE_URL-> llm.base_urlZEPH_LLM_MODEL-> llm.model
Acceptance Criteria
-
Config::load(path)parses TOML - Env vars override TOML values
- Missing file returns defaults
- Unit tests for parsing and overrides
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew functionalityNew functionalityinfraProject infrastructure and toolingProject infrastructure and tooling