Skip to main content

Type Alias: GatewayInferenceInputResponseFormatJsonSchema

type GatewayInferenceInputResponseFormatJsonSchema = {
type: "json_schema";
json_schema: {
description?: string;
name: string;
schema?: GatewayInferenceInputResponseFormatJsonSchemaSchema;
strict?: boolean | null;
};
};

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

Portkey ResponseFormatJsonSchema; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputResponseFormatJsonSchemaSchema.parse(value);`

Properties​

type​

type: "json_schema";

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


json_schema​

json_schema: {
description?: string;
name: string;
schema?: GatewayInferenceInputResponseFormatJsonSchemaSchema;
strict?: boolean | null;
};

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

description?​

optional description?: string;

name​

name: string;

schema?​

optional schema?: GatewayInferenceInputResponseFormatJsonSchemaSchema;

strict?​

optional strict?: boolean | null;