Skip to main content

Python class

ParsedToolResponse

ParsedToolResponseโ€‹

class max.interfaces.ParsedToolResponse(content=None, tool_calls=<factory>)

source

Bases: object

Result of parsing a complete model response for tool calls.

Parameters:

contentโ€‹

content: str | None = None

source

The text content from the response (before/after tool calls).

tool_callsโ€‹

tool_calls: list[ParsedToolCall]

source

The list of ParsedToolCall objects extracted from the response.