OutputMessage - Python SDK
OutputMessage - Python SDK
OutputMessage method reference
OutputMessage - Python SDK
The Python SDK and docs are currently in beta. Report issues on GitHub.
| Field | Type | Required | Description |
|---|---|---|---|
content | List[components.OutputMessageContent] | ✔️ | N/A |
id | str | ✔️ | N/A |
phase | OptionalNullable[components.OutputMessagePhaseUnion] | ➖ | The phase of an assistant message. Use commentary for an intermediate assistant message and final_answer for the final assistant message. For follow-up requests with models like gpt-5.3-codex and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. |
role | components.OutputMessageRole | ✔️ | N/A |
status | Optional[components.OutputMessageStatusUnion] | ➖ | N/A |
type | components.OutputMessageType | ✔️ | N/A |