For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
      • OAuth
      • Observability
        • CreateResponsesResponse
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • Python SDK
    • Overview
  • Go SDK
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Supported Types
  • models.OpenResponsesResult
  • EventStream<models.ResponsesStreamingResponse>
TypeScript SDKAPI ReferenceOperations

CreateResponsesResponse - TypeScript SDK

CreateResponsesResponse type definition
Was this page helpful?
Previous

Organization - TypeScript SDK

Organization method reference
Next
Built with

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

Supported Types

models.OpenResponsesResult

1const value: models.OpenResponsesResult = {
2 completedAt: 728667,
3 createdAt: 1704067200,
4 error: null,
5 frequencyPenalty: 9990.37,
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: null,
27 status: "completed",
28 temperature: null,
29 toolChoice: "auto",
30 tools: [],
31 topP: null,
32};

EventStream<models.ResponsesStreamingResponse>