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

This commit is contained in:
Dax Raad
2026-02-08 18:43:53 -05:00
parent 84171018f2
commit aab2a6df3b

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")
? {