IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

source

Bases: TypedDict

Represents a function definition for a text generation request.

description​

description: str | None

source

A human-readable description of the function’s purpose.

name​

name: str

source

The name of the function to be invoked.

parameters​

parameters: dict[str, Any]

source

A dictionary describing the function’s parameters, typically following a JSON schema.