diff options
| author | Matt Silverlock <[email protected]> | 2025-12-20 12:46:48 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-20 11:49:23 -0600 |
| commit | 8f6c8844d742b56858823e57388e8149f665cb7a (patch) | |
| tree | 7113743b383c1f8a6329531ef214c8e47d3c7b64 /packages/sdk | |
| parent | da6e0e60c0ca42d54595553fc1ab70f62be6e3b9 (diff) | |
| download | opencode-8f6c8844d742b56858823e57388e8149f665cb7a.tar.gz opencode-8f6c8844d742b56858823e57388e8149f665cb7a.zip | |
feat: support configuring a default_agent across all API/user surfaces (#5843)
Co-authored-by: observerw <[email protected]>
Diffstat (limited to 'packages/sdk')
| -rw-r--r-- | packages/sdk/js/src/v2/gen/types.gen.ts | 5 | ||||
| -rw-r--r-- | packages/sdk/openapi.json | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index cdbdfdfda..1b43d3f48 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -1415,6 +1415,10 @@ export type Config = { */ small_model?: string /** + * Default agent to use when none is specified. Must be a primary agent. Falls back to 'build' if not set or if the specified agent is invalid. + */ + default_agent?: string + /** * Custom username to display in conversations instead of system username */ username?: string @@ -1767,6 +1771,7 @@ export type Agent = { mode: "subagent" | "primary" | "all" native?: boolean hidden?: boolean + default?: boolean topP?: number temperature?: number color?: string diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index eeb81a844..f33d20069 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -8153,6 +8153,10 @@ "description": "Small model to use for tasks like title generation in the format of provider/model", "type": "string" }, + "default_agent": { + "description": "Default agent to use when none is specified. Must be a primary agent. Falls back to 'build' if not set or if the specified agent is invalid.", + "type": "string" + }, "username": { "description": "Custom username to display in conversations instead of system username", "type": "string" @@ -9152,6 +9156,9 @@ "hidden": { "type": "boolean" }, + "default": { + "type": "boolean" + }, "topP": { "type": "number" }, |
