Python class
UserMessage
UserMessageβ
class max.pipelines.request.UserMessage(*, role='user', content, name=None)
Bases: BaseModel
A message from the user.
-
Parameters:
-
- role (Literal['user'])
- content (str | list[InputTextContent | InputImageContent | InputFileContent | InputVideoContent])
- name (str | None)
contentβ
content: str | list[InputContent]
model_configβ
model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
nameβ
roleβ
role: Literal['user']
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!