Skip to content
1 min read · 244 words

Interface: OpenAIResponsesResponseObject ​

Defined in: src/batteries/llm/openai_responses/types.ts:280

The full response object — returned directly (non-streaming), or nested under a terminal streaming event.

Indexable ​

ts
[key: string]: unknown

Properties ​

PropertyTypeDescriptionDefined in
created_at?numberUnix timestamp (seconds) when the response was created.src/batteries/llm/openai_responses/types.ts:286
error?| { code?: string; message?: string; type?: string; } | nullPresent when status is 'failed'; the provider's error details.src/batteries/llm/openai_responses/types.ts:300
id?stringThe response's unique identifier.src/batteries/llm/openai_responses/types.ts:282
incomplete_details?| { reason?: string; } | nullPresent when status is 'incomplete'; explains why generation stopped early.src/batteries/llm/openai_responses/types.ts:298
model?stringThe model that generated the response.src/batteries/llm/openai_responses/types.ts:290
object?stringObject-type discriminator, typically 'response'.src/batteries/llm/openai_responses/types.ts:284
output?OpenAIResponsesOutputItem[]The ordered output items the model produced.src/batteries/llm/openai_responses/types.ts:292
output_text?stringConvenience concatenation of the response's output text, when the provider supplies it.src/batteries/llm/openai_responses/types.ts:294
status?| "failed" | "completed" | "incomplete" | "in_progress" | "cancelled" | "queued"Terminal or in-flight lifecycle status of the response.src/batteries/llm/openai_responses/types.ts:288
usage?OpenAIResponsesUsageToken-usage accounting for this response.src/batteries/llm/openai_responses/types.ts:296