Skip to main content

Type Alias: GatewayInferenceTextResponseFormatJsonSchema

type GatewayInferenceTextResponseFormatJsonSchema = {
[key: string]: unknown;
type: "json_schema";
description?: string;
name?: string;
schema: GatewayInferenceResponseFormatJsonSchemaSchema;
strict?: boolean | null;
};

Defined in: src/models/ai-gateway-inference.ts:3544

Portkey TextResponseFormatJsonSchema; additive response fields are preserved.

Example​

`GatewayInferenceTextResponseFormatJsonSchemaSchema.parse(value);`

Indexable​

[key: string]: unknown

Properties​

type​

type: "json_schema";

Defined in: src/models/ai-gateway-inference.ts:3545


description?​

optional description?: string;

Defined in: src/models/ai-gateway-inference.ts:3546


name?​

optional name?: string;

Defined in: src/models/ai-gateway-inference.ts:3547


schema​

schema: GatewayInferenceResponseFormatJsonSchemaSchema;

Defined in: src/models/ai-gateway-inference.ts:3548


strict?​

optional strict?: boolean | null;

Defined in: src/models/ai-gateway-inference.ts:3549