Skip to main content

Python class

ParsedToolCallDelta

ParsedToolCallDelta​

class max.interfaces.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.