Interface EmbedderParams<CustomOptions>

Options of an embed function.

interface EmbedderParams<CustomOptions extends ZodTypeAny = ZodTypeAny> {
    content:
        | string
        | {
            content: (
                | { media?: undefined; text: string }
                | { media: { contentType?: string; url: string }; text?: undefined }
            )[];
            metadata?: Record<string, any>;
        };
    embedder: EmbedderArgument<CustomOptions>;
    metadata?: Record<string, unknown>;
    options?: TypeOf<CustomOptions>;
}

Type Parameters

Properties

content:
    | string
    | {
        content: (
            | { media?: undefined; text: string }
            | { media: { contentType?: string; url: string }; text?: undefined }
        )[];
        metadata?: Record<string, any>;
    }
metadata?: Record<string, unknown>