Skip to main content

Python class

TextGenerationRequestFunction

TextGenerationRequestFunction

class max.interfaces.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.