Python class
ParsedToolCallDelta
ParsedToolCallDeltaβ
class max.interfaces.ParsedToolCallDelta(index, id=None, name=None, arguments=None, content=None)
Bases: object
Incremental tool call data for streaming responses.
Used during streaming to send partial tool call information as it becomes available.
-
Parameters:
argumentsβ
The partial arguments string, streamed incrementally.
contentβ
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β
The tool call ID, typically sent with the first chunk.
indexβ
index: int
The index of this tool call in the list of tool calls.
nameβ
The function name, typically sent with the first chunk.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!