Variable ModelRequestSchemaConst
ModelRequestSchema: ZodObject< { config: ZodOptional<ZodAny>; docs: ZodOptional< ZodArray< ZodObject< { content: ZodArray< ZodUnion< [ ZodObject< extendShape<(...)
, (...)
>, "strip", ZodTypeAny, { media?: ...
; text: ...
}, { media?: ...
; text: ...
}, >, ZodObject< extendShape<(...)
, (...)
>, "strip", ZodTypeAny, { media: ...
; text?: ...
}, { media: ...
; text?: ...
}, >, ], >, "many", >; metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>; }, "strip", ZodTypeAny, { content: (
| { media?: undefined; text: string } | { media: { contentType?: ...
; url: ...
}; text?: undefined } )
[]; metadata?: Record<string, any>; }, { content: (
| { media?: undefined; text: string } | { media: { contentType?: ...
; url: ...
}; text?: undefined } )
[]; metadata?: Record<string, any>; }, >, "many", >, >; messages: ZodArray< ZodObject< { content: ZodArray< ZodUnion< [ ZodObject< extendShape< { custom: ...
; data: ...
; media: ...
; metadata: ...
; text: ...
; toolRequest: ...
; toolResponse: ...
; }, { text: ...
}, >, "strip", ZodTypeAny, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text: string; toolRequest?: undefined; toolResponse?: undefined; }, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text: string; toolRequest?: undefined; toolResponse?: undefined; }, >, ZodObject< extendShape< { custom: ...
; data: ...
; media: ...
; metadata: ...
; text: ...
; toolRequest: ...
; toolResponse: ...
; }, { media: ...
}, >, "strip", ZodTypeAny, { custom?: (...)
| (...)
; data?: unknown; media: { contentType?: ...
; url: ...
}; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; }, { custom?: (...)
| (...)
; data?: unknown; media: { contentType?: ...
; url: ...
}; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; }, >, ZodObject< extendShape< { custom: ...
; data: ...
; media: ...
; metadata: ...
; text: ...
; toolRequest: ...
; toolResponse: ...
; }, { toolRequest: ...
}, >, "strip", ZodTypeAny, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest: { input?: ...
; name: ...
; ref?: ...
}; toolResponse?: undefined; }, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest: { input?: ...
; name: ...
; ref?: ...
}; toolResponse?: undefined; }, >, ZodObject< extendShape< { custom: ...
; data: ...
; media: ...
; metadata: ...
; text: ...
; toolRequest: ...
; toolResponse: ...
; }, { toolResponse: ...
}, >, "strip", ZodTypeAny, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse: { name: ...
; output?: ...
; ref?: ...
}; }, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse: { name: ...
; output?: ...
; ref?: ...
}; }, >, ZodObject< extendShape< { custom: ...
; data: ...
; media: ...
; metadata: ...
; text: ...
; toolRequest: ...
; toolResponse: ...
; }, { data: ...
}, >, "strip", ZodTypeAny, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; }, { custom?: (...)
| (...)
; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; }, >, ZodObject< extendShape< { custom: ...
; data: ...
; media: ...
; metadata: ...
; text: ...
; toolRequest: ...
; toolResponse: ...
; }, { custom: ...
}, >, "strip", ZodTypeAny, { custom: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; }, { custom: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: (...)
| (...)
; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; }, >, ], >, "many", >; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; role: ZodEnum<["system", "user", "model", "tool"]>; }, "strip", ZodTypeAny, { content: (
| { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text: string; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media: { contentType?: (...)
| (...)
; url: string }; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest: { input?: unknown; name: string; ref?: (...)
| (...)
}; toolResponse?: undefined; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse: { name: string; output?: unknown; ref?: (...)
| (...)
}; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom: Record<string, any>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } )
[]; metadata?: Record<string, unknown>; role: "model" | "system" | "user" | "tool"; }, { content: (
| { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text: string; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media: { contentType?: (...)
| (...)
; url: string }; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest: { input?: unknown; name: string; ref?: (...)
| (...)
}; toolResponse?: undefined; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse: { name: string; output?: unknown; ref?: (...)
| (...)
}; } | { custom?: Record<(...)
, (...)
>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom: Record<string, any>; data?: unknown; media?: undefined; metadata?: Record<(...)
, (...)
>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } )
[]; metadata?: Record<string, unknown>; role: "model" | "system" | "user" | "tool"; }, >, "many", >; output: ZodOptional< ZodObject< { constrained: ZodOptional<ZodBoolean>; contentType: ZodOptional<ZodString>; format: ZodOptional<ZodString>; instructions: ZodOptional<ZodString>; schema: ZodOptional<ZodRecord<ZodString, ZodAny>>; }, "strip", ZodTypeAny, { constrained?: boolean; contentType?: string; format?: string; instructions?: string; schema?: Record<string, any>; }, { constrained?: boolean; contentType?: string; format?: string; instructions?: string; schema?: Record<string, any>; }, >, >; toolChoice: ZodOptional<ZodEnum<["auto", "required", "none"]>>; tools: ZodOptional< ZodArray< ZodObject< { description: ZodString; inputSchema: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodAny>>>; metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>; name: ZodString; outputSchema: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodAny>>>; }, "strip", ZodTypeAny, { description: string; inputSchema?: Record<string, any> | null; metadata?: Record<string, any>; name: string; outputSchema?: Record<string, any> | null; }, { description: string; inputSchema?: Record<string, any> | null; metadata?: Record<string, any>; name: string; outputSchema?: Record<string, any> | null; }, >, "many", >, >; }, "strip", ZodTypeAny, { config?: any; docs?: { content: (
| { media?: undefined; text: string } | { media: { contentType?: (...)
| (...)
; url: string }; text?: undefined; } )
[]; metadata?: Record<string, any>; }[]; messages: { content: (
| { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text: string; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<string, unknown>; data?: unknown; media: { contentType?: string; url: string }; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest: { input?: unknown; name: string; ref?: string }; toolResponse?: undefined; } | { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse: { name: string; output?: unknown; ref?: string }; } | { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom: Record<string, any>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } )
[]; metadata?: Record<string, unknown>; role: "model" | "system" | "user" | "tool"; }[]; output?: { constrained?: boolean; contentType?: string; format?: string; instructions?: string; schema?: Record<string, any>; }; toolChoice?: "auto" | "required" | "none"; tools?: { description: string; inputSchema?: Record<string, any> | null; metadata?: Record<string, any>; name: string; outputSchema?: Record<string, any> | null; }[]; }, { config?: any; docs?: { content: (
| { media?: undefined; text: string } | { media: { contentType?: (...)
| (...)
; url: string }; text?: undefined; } )
[]; metadata?: Record<string, any>; }[]; messages: { content: (
| { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text: string; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<string, unknown>; data?: unknown; media: { contentType?: string; url: string }; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest: { input?: unknown; name: string; ref?: string }; toolResponse?: undefined; } | { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse: { name: string; output?: unknown; ref?: string }; } | { custom?: Record<string, unknown>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } | { custom: Record<string, any>; data?: unknown; media?: undefined; metadata?: Record<string, unknown>; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; } )
[]; metadata?: Record<string, unknown>; role: "model" | "system" | "user" | "tool"; }[]; output?: { constrained?: boolean; contentType?: string; format?: string; instructions?: string; schema?: Record<string, any>; }; toolChoice?: "auto" | "required" | "none"; tools?: { description: string; inputSchema?: Record<string, any> | null; metadata?: Record<string, any>; name: string; outputSchema?: Record<string, any> | null; }[]; },>
ModelRequestSchema represents the parameters that are passed to a model when generating content.