Skip to content
3 min read · 565 words

Interface: OpenAIResponsesRequestBody ​

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

The WIRE body shape this battery constructs and sends — not a 1:1 mirror of consumer-settable options. instructions and store are ALWAYS adapter-computed; neither is a key on OpenAIResponsesAdapterOptions.

Indexable ​

ts
[key: string]: unknown

Properties ​

PropertyTypeDescriptionDefined in
background?booleanRequest the generation run in the background (async).src/batteries/llm/openai_responses/types.ts:688
include?OpenAIResponsesIncludable[]Additional output data requested from the model, e.g. 'reasoning.encrypted_content'.src/batteries/llm/openai_responses/types.ts:653
inputOpenAIResponsesInputItem[]The flat array of input items — messages, tool calls/results, and reasoning items.src/batteries/llm/openai_responses/types.ts:645
instructions?stringALWAYS ADK-rendered; never a consumer-settable option.src/batteries/llm/openai_responses/types.ts:649
max_output_tokens?numberHard limit on the number of generated output tokens.src/batteries/llm/openai_responses/types.ts:664
metadata?Record<string, string>Metadata key-value pairs forwarded to the provider.src/batteries/llm/openai_responses/types.ts:684
modelstringID of the model to use for generation.src/batteries/llm/openai_responses/types.ts:643
parallel_tool_calls?booleanAllow the model to emit multiple tool calls in one turn.src/batteries/llm/openai_responses/types.ts:666
prompt_cache_key?stringVendor cache key for caching prefix content.src/batteries/llm/openai_responses/types.ts:678
prompt_cache_retention?"in_memory" | "24h"Cache retention strategy for cached prefix content.src/batteries/llm/openai_responses/types.ts:680
reasoning?{ effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh"; summary?: "auto" | "concise" | "detailed"; }Reasoning-effort / summary configuration for reasoning-capable models.src/batteries/llm/openai_responses/types.ts:659
reasoning.effort?"none" | "minimal" | "low" | "medium" | "high" | "xhigh"-src/batteries/llm/openai_responses/types.ts:660
reasoning.summary?"auto" | "concise" | "detailed"-src/batteries/llm/openai_responses/types.ts:661
safety_identifier?stringUnique safety system identifier or configuration id.src/batteries/llm/openai_responses/types.ts:682
service_tier?"default" | "auto" | "flex" | "scale" | "priority"Service reliability tier for processing the request.src/batteries/llm/openai_responses/types.ts:676
storefalseALWAYS false — this adapter is stateless; see the battery's design notes.src/batteries/llm/openai_responses/types.ts:651
streambooleanIf set, partial output deltas are sent as server-sent events.src/batteries/llm/openai_responses/types.ts:647
stream_options?{ include_obfuscation?: boolean; }Configuration options for response streaming.src/batteries/llm/openai_responses/types.ts:690
stream_options.include_obfuscation?boolean-src/batteries/llm/openai_responses/types.ts:690
temperature?numberSampling temperature control.src/batteries/llm/openai_responses/types.ts:668
text?{ format?: Record<string, unknown>; verbosity?: "low" | "medium" | "high"; }Structured-output format / verbosity configuration.src/batteries/llm/openai_responses/types.ts:686
text.format?Record<string, unknown>-src/batteries/llm/openai_responses/types.ts:686
text.verbosity?"low" | "medium" | "high"-src/batteries/llm/openai_responses/types.ts:686
tool_choice?OpenAIResponsesToolChoiceTool-choice directive constraining which (if any) tool the model may call.src/batteries/llm/openai_responses/types.ts:657
tools?OpenAIResponsesTool[]Function-tool definitions the model may call.src/batteries/llm/openai_responses/types.ts:655
top_logprobs?numberTop log-probability tokens limit.src/batteries/llm/openai_responses/types.ts:672
top_p?numberNucleus sampling probability threshold.src/batteries/llm/openai_responses/types.ts:670
truncation?"auto" | "disabled"Context-truncation strategy.src/batteries/llm/openai_responses/types.ts:674