Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
An output message item

Fields

FieldTypeRequiredDescription
Content[]components.OutputMessageItemContent:heavy_check_mark:N/A
IDstring:heavy_check_mark:N/A
Phaseoptionalnullable.OptionalNullable[components.OutputMessageItemPhaseUnion]:heavy_minus_sign: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.
Rolecomponents.OutputMessageItemRole:heavy_check_mark:N/A
Status*components.OutputMessageItemStatusUnion:heavy_minus_sign:N/A
Typecomponents.OutputMessageItemType:heavy_check_mark:N/A