mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
3.3 KiB
3.3 KiB
ChatCompletionMessage
Assistant message in completion response
Fields
| Field | Type | Required | Description |
|---|---|---|---|
role |
models.ChatCompletionMessageRole | ✔️ | N/A |
content |
Nullable[str] | ✔️ | Message content |
reasoning |
OptionalNullable[str] | ➖ | Reasoning output |
refusal |
Nullable[str] | ✔️ | Refusal message if content was refused |
tool_calls |
List[models.ChatCompletionMessageToolCall] | ➖ | Tool calls made by the assistant |
reasoning_details |
List[models.ReasoningDetail] | ➖ | Reasoning details delta to send reasoning details back to upstream |
annotations |
List[models.AnnotationDetail] | ➖ | Annotations delta to send annotations back to upstream |