Skip to content

Commit 62ef1d0

Browse files
Updated max_steps example with custom agent
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 2575a29 commit 62ef1d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/web/src/content/docs/agents.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ If this is not set, the agent will continue to iterate until the model chooses t
266266
```json title="opencode.json"
267267
{
268268
"agent": {
269-
"general": {
270-
"maxSteps": 10
269+
"quick-thinker": {
270+
"description": "Fast reasoning with limited iterations",
271+
"prompt": "You are a quick thinker. Solve problems with minimal steps.",
272+
"maxSteps": 5
271273
}
272274
}
273275
}

0 commit comments

Comments
 (0)