Skip to main content

Python class

TextGenerationContextType

TextGenerationContextType

class max.pipelines.modeling.types.TextGenerationContextType

source

Type variable for text generation context types, constrained to TextGenerationContext.

This allows generic typing of text generation pipeline components to accept any context type that implements the TextGenerationContext protocol.

alias of TypeVar(‘TextGenerationContextType’, bound=TextGenerationContext)