Skip to content

Interface: ResponsesParams

@providerprotocol/ai


@providerprotocol/ai / responses / 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.

OpenResponses Spec

optional background: boolean

Defined in: src/providers/responses/types.ts:120

Background processing - run response asynchronously


optional frequency_penalty: number

Defined in: src/providers/responses/types.ts:88

Frequency penalty for new tokens


optional include: string[]

Defined in: src/providers/responses/types.ts:117

Fields to include in output.

['reasoning.encrypted_content', 'message.output_text.logprobs']

optional max_output_tokens: number

Defined in: src/providers/responses/types.ts:76

Maximum output tokens (minimum 16)


optional max_tool_calls: number

Defined in: src/providers/responses/types.ts:132

Maximum total calls to built-in tools


optional metadata: 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)


optional parallel_tool_calls: boolean

Defined in: src/providers/responses/types.ts:94

Whether to enable parallel tool calls


optional presence_penalty: number

Defined in: src/providers/responses/types.ts:85

Presence penalty for new tokens


optional previous_response_id: string

Defined in: src/providers/responses/types.ts:123

Continue from a previous response


optional prompt_cache_key: string

Defined in: src/providers/responses/types.ts:135

Stable identifier for caching similar requests (max 64 chars)


optional reasoning: object

Defined in: src/providers/responses/types.ts:100

Reasoning configuration (for reasoning models). Supported on gpt-5 and o-series models.

optional effort: "none" | "low" | "medium" | "high" | "xhigh"

Reasoning effort level

optional summary: "auto" | "detailed" | "concise"

Include summary of reasoning


optional safety_identifier: string

Defined in: src/providers/responses/types.ts:138

Stable identifier for abuse detection (max 64 chars)


optional service_tier: "default" | "priority" | "auto" | "flex"

Defined in: src/providers/responses/types.ts:108

Service tier


optional store: boolean

Defined in: src/providers/responses/types.ts:126

Store response for continuation


optional temperature: number

Defined in: src/providers/responses/types.ts:79

Temperature for randomness (0.0 - 2.0)


optional text: ResponsesTextConfig

Defined in: src/providers/responses/types.ts:144

Text format configuration. Controls output format (text, json_object, json_schema) and verbosity.


optional tools: 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.


optional top_logprobs: number

Defined in: src/providers/responses/types.ts:91

Number of top logprobs to return (0-20)


optional top_p: number

Defined in: src/providers/responses/types.ts:82

Top-p (nucleus) sampling (0.0 - 1.0)


optional truncation: "auto" | "disabled"

Defined in: src/providers/responses/types.ts:111

Truncation strategy