Python class
TextGenerationContextType
TextGenerationContextType
class max.pipelines.modeling.types.TextGenerationContextType
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)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!