AssistantMessage
February 25, 2026 ยท View on GitHub
Fields
| Field | Type | Required | Description |
|---|---|---|---|
role | Optional[Literal["assistant"]] | :heavy_minus_sign: | N/A |
content | OptionalNullable[models.AssistantMessageContent] | :heavy_minus_sign: | N/A |
tool_calls | List[models.ToolCall] | :heavy_minus_sign: | N/A |
prefix | Optional[bool] | :heavy_minus_sign: | Set this to true when adding an assistant message as prefix to condition the model response. The role of the prefix message is to force the model to start its answer by the content of the message. |