Interface: ToolCallParseResult
Defined in: src/batteries/llm/chat_common/tool_parsers.ts:55
The result of running a ToolCallParserFn over assistant text.
Remarks
cleanedText is the prose with every consumed tool-call span removed and trimmed, so the visible assistant message never carries raw markup. On no-match a parser MUST return { calls: [], cleanedText: rawText } verbatim — that is the signal the 'auto' driver uses to detect "this parser made no claim" and move to the next one.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
calls | ParsedToolCall[] | The tool calls extracted, in document order. Empty when the parser made no claim. | src/batteries/llm/chat_common/tool_parsers.ts:57 |
cleanedText | string | The assistant prose with every consumed tool-call span removed; equals the input on no-match. | src/batteries/llm/chat_common/tool_parsers.ts:59 |