Skip to main content

Python class

TextGenerationResponseFormat

TextGenerationResponseFormatโ€‹

class max.interfaces.TextGenerationResponseFormat

source

Bases: TypedDict

Represents the response format specification for a text generation request.

json_schemaโ€‹

json_schema: dict[str, Any]

source

A JSON schema dictionary that defines the structure and validation rules for the generated response.

typeโ€‹

type: str

source

The type of response format, for example, json_object.