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

Supported Types

models.ResponseOutputText

const value: models.ResponseOutputText = {
  type: "output_text",
  text: "The capital of France is Paris.",
};

models.ReasoningTextContent

const value: models.ReasoningTextContent = {
  type: "reasoning_text",
  text: "Let me think step by step about this problem...",
};

models.OpenAIResponsesRefusalContent

const value: models.OpenAIResponsesRefusalContent = {
  type: "refusal",
  refusal: "I'm sorry, I cannot assist with that request",
};