ollie/cmd/olliesrv/internal/backend
Ollie Agent f3933e21e7 backend: make reasoningEffort the primary knob with documented thresholds
reasoningEffort (low|medium|high) is now the single human-facing control
for model deliberation. Backends that speak a discrete level (OpenAI,
OpenRouter, Copilot, Gemini, Kiro) send it verbatim; Anthropic, which
needs a numeric budget, translates via documented thresholds
(low=4096, medium=8192, high=16384). thinkingBudget remains an advanced
explicit override that wins when set.

- Add EffortLow/Medium/High, threshold consts, ValidReasoningEffort,
  EffortThinkingBudget, and GenerationParams.ResolvedThinkingBudget.
- Anthropic: derive budget from effort, grow max_tokens above the budget
  (Anthropic requires budget < max_tokens), and force temperature=1 when
  thinking is enabled (both are Anthropic requirements).
- Validate reasoningEffort at config load so typos fail loudly instead
  of silently no-opping.
- theo: drop explicit thinkingBudget/inflated maxTokens; reasoningEffort
  high now implies the 16384 budget.
- Document thresholds and per-backend behavior in data/agents/README.md;
  fix stale autoLoad/maxSteps references.
- Add unit tests for the mapping and Anthropic thinking behavior.
2026-09-07 13:34:58 +02:00
..
anthropic.go backend: make reasoningEffort the primary knob with documented thresholds 2026-09-07 13:34:58 +02:00
anthropic_stream_test.go models: add pricing info with cache rates and static estimates 2026-09-04 13:26:48 +02:00
backend.go backend: make reasoningEffort the primary knob with documented thresholds 2026-09-07 13:34:58 +02:00
backend_test.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
base.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
codewhisperer_test.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
config.go merge paths utilities into util 2026-08-16 18:37:03 +02:00
config_test.go fix cancellation and configure compaction model 2026-08-15 12:29:55 +02:00
copilot.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
doc.go add doc.go files; decompose agent package 2026-08-27 10:03:58 +02:00
export_test.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
gemini.go Remove legacy backend environment configuration 2026-08-16 19:48:52 +02:00
kiro.go Prevent backend stream goroutine leaks 2026-08-17 18:27:35 +02:00
kiro_internal.go merge paths utilities into util 2026-08-16 18:37:03 +02:00
new.go refactor: remove dead code across packages (-220 lines) 2026-08-21 16:41:42 +02:00
new_test.go Remove legacy backend environment configuration 2026-08-16 19:48:52 +02:00
notools_test.go config: rename agent autoLoad field to tools 2026-09-07 13:23:17 +02:00
ollama.go Prevent backend stream goroutine leaks 2026-08-17 18:27:35 +02:00
ollama_stream_test.go Prevent backend stream goroutine leaks 2026-08-17 18:27:35 +02:00
oneshot.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
openai.go fs: show OpenRouter cache pricing for selected models 2026-09-05 11:56:04 +02:00
openai_encode_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
openai_stream_test.go Prevent backend stream goroutine leaks 2026-08-17 18:27:35 +02:00
openai_test.go fs: show OpenRouter cache pricing for selected models 2026-09-05 11:56:04 +02:00
pool.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
reasoning_test.go backend: make reasoningEffort the primary knob with documented thresholds 2026-09-07 13:34:58 +02:00
testhelper_test.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
validate.go session: require cwd, make agent cwd read-only, sanitize message history 2026-08-17 14:15:55 +02:00
validate_test.go session: require cwd, make agent cwd read-only, sanitize message history 2026-08-17 14:15:55 +02:00