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

Message

Message

class max.pipelines.request.Message(*, id, role, content, name=None, status=None, tool_calls=None)

source

Bases: BaseModel

A generic message in the conversation.

Parameters:

content

content: str | list[InputContent | OutputContent]

source

id

id: str

source

model_config

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

source

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

name

name: str | None

source

role

role: MessageRole

source

status

status: MessageStatus | None

source

tool_calls

tool_calls: list[FunctionCall] | None

source