Python class
AssistantMessage
AssistantMessageβ
class max.pipelines.request.AssistantMessage(*, role='assistant', content, name=None, tool_calls=None)
Bases: BaseModel
A message from the assistant.
-
Parameters:
-
- role (Literal['assistant'])
- content (str | list[OutputTextContent | RefusalContent])
- name (str | None)
- tool_calls (list[FunctionCall] | None)
contentβ
content: str | list[OutputTextContent | RefusalContent]
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['assistant']
tool_callsβ
tool_calls: list[FunctionCall] | None
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!