@sap-ai-sdk/prompt-registry
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
75 lines • 1.86 kB
TypeScript
import { z } from 'zod';
/**
* @internal
**/
export declare const templateSchema: z.ZodUnion<[z.ZodObject<{
role: z.ZodString;
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
role: string;
content: string;
}, {
role: string;
content: string;
}>, z.ZodObject<{
role: z.ZodString;
content: z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
detail: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
url: string;
detail?: string | undefined;
}, {
url: string;
detail?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
image_url: {
url: string;
detail?: string | undefined;
};
type: "image_url";
}, {
image_url: {
url: string;
detail?: string | undefined;
};
type: "image_url";
}>, z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
role: string;
content: ({
text: string;
type: "text";
} | ({
image_url: {
url: string;
detail?: string | undefined;
};
type: "image_url";
} & Record<string, any>))[];
}, {
role: string;
content: ({
text: string;
type: "text";
} | ({
image_url: {
url: string;
detail?: string | undefined;
};
type: "image_url";
} & Record<string, any>))[];
}>]>;
//# sourceMappingURL=template.zod.d.ts.map