CreateResponsesResponse - TypeScript SDK

CreateResponsesResponse type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

models.OpenResponsesNonStreamingResponse

1const value: models.OpenResponsesNonStreamingResponse = {
2 id: "resp-abc123",
3 object: "response",
4 createdAt: 1704067200,
5 model: "gpt-4",
6 output: [
7 {
8 id: "msg-abc123",
9 role: "assistant",
10 type: "message",
11 content: [
12 {
13 type: "output_text",
14 text: "Hello! How can I help you today?",
15 },
16 ],
17 },
18 ],
19 error: null,
20 incompleteDetails: null,
21 temperature: null,
22 topP: null,
23 instructions: null,
24 metadata: null,
25 tools: [],
26 toolChoice: "auto",
27 parallelToolCalls: true,
28};

EventStream<operations.CreateResponsesResponseBody>