Skip to main content

Python class

ParsedToolCallDelta

ParsedToolCallDelta

class max.interfaces.ParsedToolCallDelta(index, id=None, name=None, arguments=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)

arguments

arguments: str | None = None

source

The partial arguments string, streamed incrementally.

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.