Variable openaiResponseFormatSchemaConst
openaiResponseFormatSchema: ZodObject<
{
json_schema: ZodObject<
{
description: ZodOptional<ZodString>;
name: ZodString;
schema: ZodObject<
{
additionalProperties: ZodOptional<ZodBoolean>;
properties: ZodRecord<
ZodString,
ZodUnion<
[
ZodObject<
{ description: ...; enum: ...; type: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
{ anyOf: ... },
"strip",
ZodTypeAny,
{ anyOf: ... },
{ anyOf: ... },
>,
],
>,
>;
required: ZodOptional<ZodArray<ZodString, "many">>;
type: ZodLiteral<"object">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
additionalProperties: ZodOptional<ZodBoolean>;
properties: ZodRecord<
ZodString,
ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>,
>;
required: ZodOptional<ZodArray<ZodString, "many">>;
type: ZodLiteral<"object">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
additionalProperties: ZodOptional<ZodBoolean>;
properties: ZodRecord<
ZodString,
ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>,
>;
required: ZodOptional<ZodArray<ZodString, "many">>;
type: ZodLiteral<"object">;
},
ZodTypeAny,
"passthrough",
>,
>;
},
"strip",
ZodTypeAny,
{
description?: string;
name: string;
schema: {
additionalProperties?: boolean;
properties: Record<
string,
| objectOutputType<
{
description: ZodOptional<(...)>;
enum: ZodOptional<(...)>;
type: ZodEnum<(...)>;
},
ZodTypeAny,
"passthrough",
>
| { anyOf: objectOutputType<(...), (...), (...)>[] },
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
},
{
description?: string;
name: string;
schema: {
additionalProperties?: boolean;
properties: Record<
string,
| objectInputType<
{
description: ZodOptional<(...)>;
enum: ZodOptional<(...)>;
type: ZodEnum<(...)>;
},
ZodTypeAny,
"passthrough",
>
| { anyOf: objectInputType<(...), (...), (...)>[] },
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
},
>;
type: ZodLiteral<"json_schema">;
},
"strip",
ZodTypeAny,
{
json_schema: {
description?: string;
name: string;
schema: {
additionalProperties?: boolean;
properties: Record<
string,
| objectOutputType<
{
description: ZodOptional<ZodString>;
enum: ZodOptional<ZodArray<(...), (...)>>;
type: ZodEnum<[(...), (...), (...), (...), (...), (...), (...)]>;
},
ZodTypeAny,
"passthrough",
>
| {
anyOf: objectOutputType<
{ description: ...; enum: ...; type: ... },
ZodTypeAny,
"passthrough",
>[];
},
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
};
type: "json_schema";
},
{
json_schema: {
description?: string;
name: string;
schema: {
additionalProperties?: boolean;
properties: Record<
string,
| objectInputType<
{
description: ZodOptional<ZodString>;
enum: ZodOptional<ZodArray<(...), (...)>>;
type: ZodEnum<[(...), (...), (...), (...), (...), (...), (...)]>;
},
ZodTypeAny,
"passthrough",
>
| {
anyOf: objectInputType<
{ description: ...; enum: ...; type: ... },
ZodTypeAny,
"passthrough",
>[];
},
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
};
type: "json_schema";
},
> = ...
OpenAI response format schema