import { z, Action, ActionMetadata } from '@genkit-ai/core'; import { Registry } from '@genkit-ai/core/registry'; /** * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * A batch (array) of embeddings. */ type EmbeddingBatch = { embedding: number[]; }[]; /** * EmbeddingSchema includes the embedding and also metadata so you know * which of multiple embeddings corresponds to which part of a document. */ declare const EmbeddingSchema: z.ZodObject<{ embedding: z.ZodArray; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { embedding: number[]; metadata?: Record | undefined; }, { embedding: number[]; metadata?: Record | undefined; }>; type Embedding = z.infer; /** * A function used for embedder definition, encapsulates embedder implementation. */ type EmbedderFn = (input: Document[], embedderOpts?: z.infer) => Promise; /** * Zod schema of an embed request. */ declare const EmbedRequestSchema: z.ZodObject<{ input: z.ZodArray; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>, z.ZodObject<{ text: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { media: z.ZodObject<{ contentType: z.ZodOptional; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; contentType?: string | undefined; }, { url: string; contentType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>]>, "many">; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { content: ({ text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; })[]; metadata?: Record | undefined; }, { content: ({ text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; })[]; metadata?: Record | undefined; }>, "many">; options: z.ZodOptional; }, "strip", z.ZodTypeAny, { input: { content: ({ text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; })[]; metadata?: Record | undefined; }[]; options?: any; }, { input: { content: ({ text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; })[]; metadata?: Record | undefined; }[]; options?: any; }>; /** * Zod schema of an embed response. */ declare const EmbedResponseSchema: z.ZodObject<{ embeddings: z.ZodArray; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { embedding: number[]; metadata?: Record | undefined; }, { embedding: number[]; metadata?: Record | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { embeddings: { embedding: number[]; metadata?: Record | undefined; }[]; }, { embeddings: { embedding: number[]; metadata?: Record | undefined; }[]; }>; type EmbedResponse = z.infer; /** * Embedder action -- a subtype of {@link Action} with input/output types for embedders. */ type EmbedderAction = Action & { __configSchema?: CustomOptions; }; /** * Options of an `embed` function. */ interface EmbedderParams { embedder: EmbedderArgument; content: string | DocumentData; metadata?: Record; options?: z.infer; } /** * Creates embedder model for the provided {@link EmbedderFn} model implementation. */ declare function defineEmbedder(registry: Registry, options: { name: string; configSchema?: ConfigSchema; info?: EmbedderInfo; }, runner: EmbedderFn): EmbedderAction; /** * A union type representing all the types that can refer to an embedder. */ type EmbedderArgument = string | EmbedderAction | EmbedderReference; /** * A veneer for interacting with embedder models. */ declare function embed(registry: Registry, params: EmbedderParams): Promise; /** * A veneer for interacting with embedder models in bulk. */ declare function embedMany(registry: Registry, params: { embedder: EmbedderArgument; content: string[] | DocumentData[]; metadata?: Record; options?: z.infer; }): Promise; /** * Zod schema of embedder info object. */ declare const EmbedderInfoSchema: z.ZodObject<{ /** Friendly label for this model (e.g. "Google AI - Gemini Pro") */ label: z.ZodOptional; /** Supported model capabilities. */ supports: z.ZodOptional, "many">>; /** Model can support multiple languages */ multilingual: z.ZodOptional; }, "strip", z.ZodTypeAny, { input?: ("text" | "image" | "video")[] | undefined; multilingual?: boolean | undefined; }, { input?: ("text" | "image" | "video")[] | undefined; multilingual?: boolean | undefined; }>>; /** Embedding dimension */ dimensions: z.ZodOptional; }, "strip", z.ZodTypeAny, { label?: string | undefined; supports?: { input?: ("text" | "image" | "video")[] | undefined; multilingual?: boolean | undefined; } | undefined; dimensions?: number | undefined; }, { label?: string | undefined; supports?: { input?: ("text" | "image" | "video")[] | undefined; multilingual?: boolean | undefined; } | undefined; dimensions?: number | undefined; }>; type EmbedderInfo = z.infer; /** * 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 { name: string; configSchema?: CustomOptions; info?: EmbedderInfo; config?: z.infer; version?: string; } /** * Helper method to configure a {@link EmbedderReference} to a plugin. */ declare function embedderRef(options: EmbedderReference): EmbedderReference; /** * Packages embedder information into ActionMetadata object. */ declare function embedderActionMetadata({ name, info, configSchema, }: { name: string; info?: EmbedderInfo; configSchema?: z.ZodTypeAny; }): ActionMetadata; /** * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Zod schema for a text part. */ declare const TextPartSchema: z.ZodObject<{ media: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>; /** * Zod schema for a reasoning part. */ declare const ReasoningPartSchema: z.ZodObject<{ text: z.ZodOptional; media: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; resource: z.ZodOptional; } & { reasoning: z.ZodString; }, "strip", z.ZodTypeAny, { reasoning: string; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; resource?: undefined; }, { reasoning: string; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; resource?: undefined; }>; /** * Text part. */ type TextPart = z.infer; /** * Zod schema of media. */ declare const MediaSchema: z.ZodObject<{ /** The media content type. Inferred from data uri if not provided. */ contentType: z.ZodOptional; /** A `data:` or `https:` uri containing the media content. */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; contentType?: string | undefined; }, { url: string; contentType?: string | undefined; }>; /** * Zod schema of a media part. */ declare const MediaPartSchema: z.ZodObject<{ text: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { media: z.ZodObject<{ /** The media content type. Inferred from data uri if not provided. */ contentType: z.ZodOptional; /** A `data:` or `https:` uri containing the media content. */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; contentType?: string | undefined; }, { url: string; contentType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>; /** * Media part. */ type MediaPart = z.infer; /** * Zod schema of a tool request. */ declare const ToolRequestSchema: z.ZodObject<{ /** The call id or reference for a specific request. */ ref: z.ZodOptional; /** The name of the tool to call. */ name: z.ZodString; /** The input parameters for the tool, usually a JSON object. */ input: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; input?: unknown; ref?: string | undefined; }, { name: string; input?: unknown; ref?: string | undefined; }>; type ToolRequest = z.infer; /** * Zod schema of a tool request part. */ declare const ToolRequestPartSchema: z.ZodObject<{ text: z.ZodOptional; media: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { toolRequest: z.ZodObject<{ /** The call id or reference for a specific request. */ ref: z.ZodOptional; /** The name of the tool to call. */ name: z.ZodString; /** The input parameters for the tool, usually a JSON object. */ input: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; input?: unknown; ref?: string | undefined; }, { name: string; input?: unknown; ref?: string | undefined; }>; }, "strip", z.ZodTypeAny, { toolRequest: { name: string; input?: unknown; ref?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { toolRequest: { name: string; input?: unknown; ref?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>; /** * Tool part. */ type ToolRequestPart = z.infer; /** * Zod schema of a tool response. */ declare const ToolResponseSchema: z.ZodObject<{ /** The call id or reference for a specific request. */ ref: z.ZodOptional; /** The name of the tool. */ name: z.ZodString; /** The output data returned from the tool, usually a JSON object. */ output: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; output?: unknown; }, { name: string; ref?: string | undefined; output?: unknown; }>; type ToolResponse = z.infer; /** * Zod schema of a tool response part. */ declare const ToolResponsePartSchema: z.ZodObject<{ text: z.ZodOptional; media: z.ZodOptional; toolRequest: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { toolResponse: z.ZodObject<{ /** The call id or reference for a specific request. */ ref: z.ZodOptional; /** The name of the tool. */ name: z.ZodString; /** The output data returned from the tool, usually a JSON object. */ output: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; output?: unknown; }, { name: string; ref?: string | undefined; output?: unknown; }>; }, "strip", z.ZodTypeAny, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>; /** * Tool response part. */ type ToolResponsePart = z.infer; /** * Zod schema of a data part. */ declare const DataPartSchema: z.ZodObject<{ text: z.ZodOptional; media: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { data: z.ZodUnknown; }, "strip", z.ZodTypeAny, { custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>; /** * Data part. */ type DataPart = z.infer; /** * Zod schema of a custom part. */ declare const CustomPartSchema: z.ZodObject<{ text: z.ZodOptional; media: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { custom: z.ZodRecord; }, "strip", z.ZodTypeAny, { custom: Record; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { custom: Record; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>; /** * Custom part. */ type CustomPart = z.infer; /** * Zod schema of a resource part. */ declare const ResourcePartSchema: z.ZodObject<{ text: z.ZodOptional; media: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; } & { resource: z.ZodObject<{ uri: z.ZodString; }, "strip", z.ZodTypeAny, { uri: string; }, { uri: string; }>; }, "strip", z.ZodTypeAny, { resource: { uri: string; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; }, { resource: { uri: string; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; }>; /** * Resource part. */ type ResourcePart = z.infer; declare const PartSchema: z.ZodUnion<[z.ZodObject<{ media: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>, z.ZodObject<{ text: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { media: z.ZodObject<{ /** The media content type. Inferred from data uri if not provided. */ contentType: z.ZodOptional; /** A `data:` or `https:` uri containing the media content. */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; contentType?: string | undefined; }, { url: string; contentType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>]>; type Part = z.infer; declare const DocumentDataSchema: z.ZodObject<{ content: z.ZodArray; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>, z.ZodObject<{ text: z.ZodOptional; toolRequest: z.ZodOptional; toolResponse: z.ZodOptional; data: z.ZodOptional; metadata: z.ZodOptional>; custom: z.ZodOptional>; reasoning: z.ZodOptional; resource: z.ZodOptional; } & { media: z.ZodObject<{ /** The media content type. Inferred from data uri if not provided. */ contentType: z.ZodOptional; /** A `data:` or `https:` uri containing the media content. */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; contentType?: string | undefined; }, { url: string; contentType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; }>]>, "many">; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { content: ({ text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; })[]; metadata?: Record | undefined; }, { content: ({ text: string; custom?: Record | undefined; metadata?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; metadata?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; reasoning?: undefined; resource?: undefined; })[]; metadata?: Record | undefined; }>; type DocumentData = z.infer; /** * Document represents document content along with its metadata that can be embedded, indexed or * retrieved. Each document can contain multiple parts (for example text and an image) */ declare class Document implements DocumentData { content: Part[]; metadata?: Record; constructor(data: DocumentData); static fromText(text: string, metadata?: Record): Document; static fromMedia(url: string, contentType?: string, metadata?: Record): Document; static fromData(data: string, dataType?: string, metadata?: Record): Document; /** * Concatenates all `text` parts present in the document with no delimiter. * @returns A string of all concatenated text parts. */ get text(): string; /** * Media array getter. * @returns the array of media parts. */ get media(): { url: string; contentType?: string; }[]; /** * Gets the first item in the document. Either text or media url. */ get data(): string; /** * Gets the contentType of the data that is returned by data() */ get dataType(): string | undefined; toJSON(): DocumentData; /** * Embedders may return multiple embeddings for a single document. * But storage still requires a 1:1 relationship. So we create an * array of Documents from a single document - one per embedding. * @param embeddings The embeddings to create the documents from. * @returns an array of documents based on this document and the embeddings. */ getEmbeddingDocuments(embeddings: Embedding[]): Document[]; } declare function checkUniqueDocuments(documents: Document[]): boolean; export { EmbedderInfoSchema as A, MediaSchema as B, CustomPartSchema as C, Document as D, type EmbedderAction as E, ToolRequestSchema as F, ToolResponseSchema as G, ResourcePartSchema as H, type ResourcePart as I, PartSchema as J, checkUniqueDocuments as K, type MediaPart as M, type Part as P, ReasoningPartSchema as R, type ToolRequest as T, DocumentDataSchema as a, type DocumentData as b, type ToolResponse as c, embedderActionMetadata as d, embed as e, embedderRef as f, type EmbedderArgument as g, type EmbedderInfo as h, type EmbedderParams as i, type EmbedderReference as j, type Embedding as k, type ToolRequestPart as l, type ToolResponsePart as m, type TextPart as n, DataPartSchema as o, MediaPartSchema as p, TextPartSchema as q, ToolRequestPartSchema as r, ToolResponsePartSchema as s, type CustomPart as t, type DataPart as u, type EmbeddingBatch as v, EmbeddingSchema as w, type EmbedderFn as x, defineEmbedder as y, embedMany as z };