summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js
diff options
context:
space:
mode:
authorMatt Silverlock <[email protected]>2025-12-20 12:46:48 -0500
committerAiden Cline <[email protected]>2025-12-20 11:49:23 -0600
commit8f6c8844d742b56858823e57388e8149f665cb7a (patch)
tree7113743b383c1f8a6329531ef214c8e47d3c7b64 /packages/sdk/js
parentda6e0e60c0ca42d54595553fc1ab70f62be6e3b9 (diff)
downloadopencode-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/js')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts5
1 files changed, 5 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