For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python class
TextGenerationRequestFunction
TextGenerationRequestFunction
class max.pipelines.modeling.types.TextGenerationRequestFunction
Bases: TypedDict
Represents a function definition for a text generation request.
description
A human-readable description of the function’s purpose.
name
name: str
The name of the function to be invoked.
parameters
A dictionary describing the function’s parameters, typically following a JSON schema.
strict
strict: NotRequired[bool | None]
Whether constrained decoding enforces parameters for this tool.
False constrains only the tool-call envelope and leaves the arguments
free-form; True enforces the full argument schema. The default value,
and any potential override, depends on the server’s tool-call policy.