IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

ParsedToolCallDelta

ParsedToolCallDelta​

class max.pipelines.modeling.types.ParsedToolCallDelta(index, id=None, name=None, arguments=None, content=None)

source

Bases: object

Incremental tool call data for streaming responses.

Used during streaming to send partial tool call information as it becomes available.

Parameters:

  • index (int)
  • id (str | None)
  • name (str | None)
  • arguments (str | None)
  • content (str | None)

arguments​

arguments: str | None = None

source

The partial arguments string, streamed incrementally.

content​

content: str | None = None

source

Assistant message text before the tool-calls section (streaming only).

When present, this is normal assistant output and must not be interpreted as tool-call arguments. The serving layer maps this to the chat completion content field, not to tool_calls.

id​

id: str | None = None

source

The tool call ID, typically sent with the first chunk.

index​

index: int

source

The index of this tool call in the list of tool calls.

name​

name: str | None = None

source

The function name, typically sent with the first chunk.