---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/interfaces/ToolCallParseResult.md
description: 'The result of running a [`ToolCallParserFn`](https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/type-aliases/ToolCallParserFn) over assistant text.'
---

# Interface: ToolCallParseResult

Defined in: [src/batteries/llm/chat\_common/tool\_parsers.ts:55](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/tool_parsers.ts#L55)

The result of running a [ToolCallParserFn](../type-aliases/ToolCallParserFn.md) 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`](ParsedToolCall.md)\[] | The tool calls extracted, in document order. Empty when the parser made no claim.             | [src/batteries/llm/chat\_common/tool\_parsers.ts:57](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/tool_parsers.ts#L57) |
|  `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](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/tool_parsers.ts#L59) |
