docs: lead/worker tutorial and blog post (#2930)

Co-authored-by: Rizel Scarlett <rizel@squareup.com>
This commit is contained in:
Angie Jones
2025-06-15 17:15:31 -05:00
committed by GitHub
parent b2a602dc0f
commit c896103018
5 changed files with 206 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ export GOOSE_PROVIDER__API_KEY="your-api-key-here"
### Lead/Worker Model Configuration
These variables configure a lead/worker model pattern where a powerful lead model handles initial planning and complex reasoning, then switches to a faster/cheaper worker model for execution. The switch happens automatically based on your settings.
These variables configure a [lead/worker model pattern](/docs/tutorials/lead-worker) where a powerful lead model handles initial planning and complex reasoning, then switches to a faster/cheaper worker model for execution. The switch happens automatically based on your settings.
| Variable | Purpose | Values | Default |
|----------|---------|---------|---------|
@@ -62,7 +62,7 @@ These variables configure a lead/worker model pattern where a powerful lead mode
A _turn_ is one complete prompt-response interaction. Here's how it works with the default settings:
- Use the lead model for the first 3 turns
- Use the worker model starting on the 4th turns
- Use the worker model starting on the 4th turn
- Fallback to the lead model if the worker model struggles for 2 consecutive turns
- Use the lead model for 2 turns and then switch back to the worker model