CreateResponsesResponse - TypeScript SDK

CreateResponsesResponse type definition

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

Supported Types

models.OpenResponsesResult

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

EventStream<operations.CreateResponsesResponseBody>