Interface EmbedderReference<CustomOptions>

A reference object that can used to resolve an embedder instance. Include additional type information about the specific embedder, e.g. custom config options schema.

interface EmbedderReference<CustomOptions extends ZodTypeAny = ZodTypeAny> {
    config?: TypeOf<CustomOptions>;
    configSchema?: CustomOptions;
    info?: {
        dimensions?: number;
        label?: string;
        supports?: {
            input?: ("video" | "image" | "text")[];
            multilingual?: boolean;
        };
    };
    name: string;
    version?: string;
}

Type Parameters

Properties

configSchema?: CustomOptions
info?: {
    dimensions?: number;
    label?: string;
    supports?: {
        input?: ("video" | "image" | "text")[];
        multilingual?: boolean;
    };
}
name: string
version?: string