Interface: ResponsesParams
@providerprotocol/ai / responses / ResponsesParams
Interface: ResponsesParams
Section titled “Interface: ResponsesParams”Defined in: src/providers/responses/types.ts:74
Parameters for the OpenResponses API.
These parameters follow the OpenResponses specification and are passed
directly to the /responses endpoint.
Properties
Section titled “Properties”background?
Section titled “background?”
optionalbackground:boolean
Defined in: src/providers/responses/types.ts:120
Background processing - run response asynchronously
frequency_penalty?
Section titled “frequency_penalty?”
optionalfrequency_penalty:number
Defined in: src/providers/responses/types.ts:88
Frequency penalty for new tokens
include?
Section titled “include?”
optionalinclude:string[]
Defined in: src/providers/responses/types.ts:117
Fields to include in output.
Example
Section titled “Example”['reasoning.encrypted_content', 'message.output_text.logprobs']max_output_tokens?
Section titled “max_output_tokens?”
optionalmax_output_tokens:number
Defined in: src/providers/responses/types.ts:76
Maximum output tokens (minimum 16)
max_tool_calls?
Section titled “max_tool_calls?”
optionalmax_tool_calls:number
Defined in: src/providers/responses/types.ts:132
Maximum total calls to built-in tools
metadata?
Section titled “metadata?”
optionalmetadata:Record<string,string>
Defined in: src/providers/responses/types.ts:129
Metadata key-value pairs (max 16, keys max 64 chars, values max 512 chars)
parallel_tool_calls?
Section titled “parallel_tool_calls?”
optionalparallel_tool_calls:boolean
Defined in: src/providers/responses/types.ts:94
Whether to enable parallel tool calls
presence_penalty?
Section titled “presence_penalty?”
optionalpresence_penalty:number
Defined in: src/providers/responses/types.ts:85
Presence penalty for new tokens
previous_response_id?
Section titled “previous_response_id?”
optionalprevious_response_id:string
Defined in: src/providers/responses/types.ts:123
Continue from a previous response
prompt_cache_key?
Section titled “prompt_cache_key?”
optionalprompt_cache_key:string
Defined in: src/providers/responses/types.ts:135
Stable identifier for caching similar requests (max 64 chars)
reasoning?
Section titled “reasoning?”
optionalreasoning:object
Defined in: src/providers/responses/types.ts:100
Reasoning configuration (for reasoning models). Supported on gpt-5 and o-series models.
effort?
Section titled “effort?”
optionaleffort:"none"|"low"|"medium"|"high"|"xhigh"
Reasoning effort level
summary?
Section titled “summary?”
optionalsummary:"auto"|"detailed"|"concise"
Include summary of reasoning
safety_identifier?
Section titled “safety_identifier?”
optionalsafety_identifier:string
Defined in: src/providers/responses/types.ts:138
Stable identifier for abuse detection (max 64 chars)
service_tier?
Section titled “service_tier?”
optionalservice_tier:"default"|"priority"|"auto"|"flex"
Defined in: src/providers/responses/types.ts:108
Service tier
store?
Section titled “store?”
optionalstore:boolean
Defined in: src/providers/responses/types.ts:126
Store response for continuation
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: src/providers/responses/types.ts:79
Temperature for randomness (0.0 - 2.0)
optionaltext:ResponsesTextConfig
Defined in: src/providers/responses/types.ts:144
Text format configuration. Controls output format (text, json_object, json_schema) and verbosity.
tools?
Section titled “tools?”
optionaltools:ResponsesBuiltInTool[]
Defined in: src/providers/responses/types.ts:151
Built-in tools from the OpenResponses specification. Currently supports function tools; provider-specific built-in tools may be added via the tools array.
top_logprobs?
Section titled “top_logprobs?”
optionaltop_logprobs:number
Defined in: src/providers/responses/types.ts:91
Number of top logprobs to return (0-20)
top_p?
Section titled “top_p?”
optionaltop_p:number
Defined in: src/providers/responses/types.ts:82
Top-p (nucleus) sampling (0.0 - 1.0)
truncation?
Section titled “truncation?”
optionaltruncation:"auto"|"disabled"
Defined in: src/providers/responses/types.ts:111
Truncation strategy