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
Copy file name to clipboardExpand all lines: packages/ai/ai/src/AiLanguageModel.ts
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,12 +61,15 @@ export interface IdentifiedSchema<A, I, R> extends Schema.Schema<A, I, R> {
61
61
* - `required`: The model **must** call a tool but can decide which tool will be called.
62
62
* - `none`: The model **must not** call a tool.
63
63
* - `{ tool: <tool_name> }`: The model must call the specified tool.
64
-
*
64
+
* - `{ mode?: "auto" (default) | "required", oneOf: [<tool_names>] }`: The model is restricted to a subset of tools. When `mode` is `"auto"` or omitted, the model can decide whether to call a tool from the allowed subset. When `mode` is `"required"`, the model must call one tool from the allowed subset.
0 commit comments