Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

Fields

FieldTypeRequiredDescription
contentmodels.OutputMessageContent[]:heavy_check_mark:N/A
idstring:heavy_check_mark:N/A
phasemodels.OutputMessagePhaseUnion: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.
rolemodels.OutputMessageRole:heavy_check_mark:N/A
statusmodels.OutputMessageStatusUnion:heavy_minus_sign:N/A
typemodels.OutputMessageType:heavy_check_mark:N/A