Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Input for a response request - can be a string or array of items

Supported Types

string

const value: string =
  "[{\"role\":\"user\",\"content\":\"What is the weather today?\"}]";

models.OpenResponsesInput1[]

const value: models.OpenResponsesInput1[] = [
  {
    role: "user",
    content: "What is the weather today?",
  },
];