TypeScript SDKOperations

CreateResponsesResponse - TypeScript SDK

CreateResponsesResponse method reference

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 status: "completed",
7 completedAt: 288.81,
8 output: [
9 {
10 id: "msg-abc123",
11 role: "assistant",
12 type: "message",
13 content: [
14 {
15 type: "output_text",
16 text: "Hello! How can I help you today?",
17 },
18 ],
19 },
20 ],
21 error: null,
22 incompleteDetails: null,
23 temperature: null,
24 topP: null,
25 presencePenalty: 1980.95,
26 frequencyPenalty: 5982.72,
27 instructions: null,
28 metadata: null,
29 tools: [],
30 toolChoice: "auto",
31 parallelToolCalls: true,
32};

EventStream<operations.CreateResponsesResponseBody>