@ai-sdk/open-responses
Version:
The **[Open Responses provider](https://ai-sdk.dev/providers/ai-sdk-providers/open-responses)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for [Open Responses](https://www.openresponses.org/) compatible APIs.
26 lines (23 loc) • 620 B
text/typescript
import {
lazySchema,
zodSchema,
type InferSchema,
} from '@ai-sdk/provider-utils';
import { z } from 'zod/v4';
export const openResponsesOptionsSchema = lazySchema(() =>
zodSchema(
z.object({
reasoningEffort: z
.enum(['none', 'low', 'medium', 'high', 'xhigh'])
.nullish(),
/**
* Controls reasoning summary output from the model.
* Valid values: 'concise', 'detailed', 'auto'.
*/
reasoningSummary: z.enum(['concise', 'detailed', 'auto']).nullish(),
}),
),
);
export type OpenResponsesOptions = InferSchema<
typeof openResponsesOptionsSchema
>;