You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a7f1fca
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: services/www/src/docs/content/agents.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,8 +335,10 @@ color: "#ff6b6b"
335
335
```
336
336
337
337
<Callout type="warning">
338
-
Agent request values override model and variant defaults. Session hooks may override the agent body options, and
339
-
`model.request`hooks may override headers. OpenCode-owned session headers retain their runtime values.
338
+
Agent `body` is a raw JSON overlay, applied after provider, model, and variant body defaults and after protocol
339
+
encoding. Use provider field names such as `temperature` and `top_p`. Model-request hooks may override headers;
340
+
OpenCode-owned session headers are protected from agent overrides regardless of casing. Agent `request.settings`
341
+
is not yet applied.
340
342
</Callout>
341
343
342
344
Do not use legacy top-level fields such as `temperature`, `top_p`, `prompt`, `permission`, `tools`, `disable`, or `maxSteps` in new V2 agent configuration.
0 commit comments