Skip to main content

Python class

OutputTextContent

OutputTextContent​

class max.pipelines.request.OutputTextContent(*, type='output_text', text, annotations=None, logprobs=None)

source

Bases: BaseModel

Text content in output messages.

Parameters:

annotations​

annotations: list[int] | None

source

logprobs​

logprobs: list[LogProb] | None

source

model_config​

model_config: ClassVar[ConfigDict] = {'frozen': True}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text​

text: str

source

type​

type: Literal['output_text']

source