picoclaw/pkg/config
Administrator ce311be70b feat(subturn): add configurable runtime parameters under agents.defaults
Replace hardcoded constants with config-driven parameters in agents.defaults:
- MaxDepth, MaxConcurrent, DefaultTimeout, DefaultTokenBudget, ConcurrencyTimeout
- Support JSON config and env vars (PICOCLAW_AGENTS_DEFAULTS_SUBTURN_*)
- Add getSubTurnConfig() for runtime config resolution with defaults
- Apply defaultTokenBudget when no explicit budget is provided

Rationale: SubTurn is agent execution infrastructure, not a tool, so it belongs
in agents.defaults rather than tools config.

Example:
{
  "agents": {
    "defaults": {
      "subturn": {
        "max_depth": 5,
        "max_concurrent": 10,
        "default_timeout_minutes": 10
      }
    }
  }
}
2026-03-19 13:08:46 +08:00
..
config.go feat(subturn): add configurable runtime parameters under agents.defaults 2026-03-19 13:08:46 +08:00
config_test.go feat: Add Novita provider support (#1677) 2026-03-18 18:29:27 +08:00
defaults.go Merge branch 'upstream-main' into feat/subturn-poc 2026-03-18 22:57:01 +08:00
envkeys.go refactor: centralize environment variable key constants (#1730) 2026-03-18 18:03:24 +08:00
migration.go feat(provider): add ModelScope as OpenAI-compatible provider (#1486) 2026-03-13 14:02:23 +08:00
migration_test.go feat(provider): add ModelScope as OpenAI-compatible provider (#1486) 2026-03-13 14:02:23 +08:00
model_config_test.go fix(config): start model round robin from the first match 2026-03-17 21:59:04 +08:00
multikey_test.go feat(config): support multiple API keys for failover (#1707) 2026-03-19 00:57:20 +08:00
version.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00
version_test.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00