core: add tool-only output mode to LLM for handoff extraction

pull/12755/head
Dax Raad 2026-02-08 18:43:53 -05:00
parent 84171018f2
commit aab2a6df3b
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ export namespace LLM {
small?: boolean
tools: Record<string, Tool>
retries?: number
output?: "tool"
}
export type StreamOutput = StreamTextResult<ToolSet, unknown>
@ -215,6 +216,7 @@ export namespace LLM {
tools,
maxOutputTokens,
abortSignal: input.abort,
toolChoice: input.output === "tool" ? "required" : undefined,
headers: {
...(input.model.providerID.startsWith("opencode")
? {