import { z } from '@genkit-ai/core'; /** * Copyright 2025 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; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>; /** * Text part. */ type TextPart = z.infer; /** * 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; }, { reasoning: string; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; }>; /** * Reasoning part. */ type ReasoningPart = 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; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; 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; /** Whether the request is a partial chunk. */ partial: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | 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; /** Whether the request is a partial chunk. */ partial: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>; /** * Tool part. */ type ToolRequestPart = z.infer; /** * Zod schema of a tool response. */ declare const ToolResponseSchemaBase: 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; }>; /** * Tool response part. */ type ToolResponse = z.infer & { content?: Part[]; }; declare const ToolResponseSchema: z.ZodType; /** * 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.ZodType; }, "strip", z.ZodTypeAny, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { custom: Record; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; }, { resource: { uri: string; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; }>; /** * Resource part. */ type ResourcePart = z.infer; /** * Zod schema of a message part. */ 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; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; 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; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; /** Whether the request is a partial chunk. */ partial: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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.ZodType; }, "strip", z.ZodTypeAny, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { custom: Record; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; }, { reasoning: string; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; }, { resource: { uri: string; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; }>]>; /** * Message part. */ type Part = z.infer; declare const MultipartToolResponseSchema: z.ZodObject<{ output: z.ZodOptional; content: 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; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { text: string; custom?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; 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; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; /** Whether the request is a partial chunk. */ partial: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }, { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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.ZodType; }, "strip", z.ZodTypeAny, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }, { custom: Record; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; }, { reasoning: string; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; }>, 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; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; }, { resource: { uri: string; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; }>]>, "many">>; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { content?: ({ text: string; custom?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { custom: Record; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { reasoning: string; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; } | { resource: { uri: string; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; })[] | undefined; metadata?: Record | undefined; output?: unknown; }, { content?: ({ text: string; custom?: Record | undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { media: { url: string; contentType?: string | undefined; }; custom?: Record | undefined; text?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { toolRequest: { name: string; ref?: string | undefined; input?: unknown; partial?: boolean | undefined; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { toolResponse: { name: string; ref?: string | undefined; output?: unknown; } & { content?: Part[]; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { custom: Record; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; resource?: undefined; } | { reasoning: string; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; resource?: undefined; } | { resource: { uri: string; }; custom?: Record | undefined; text?: undefined; media?: undefined; toolRequest?: undefined; toolResponse?: undefined; data?: unknown; metadata?: Record | undefined; reasoning?: undefined; })[] | undefined; metadata?: Record | undefined; output?: unknown; }>; type MultipartToolResponse = z.infer; export { type CustomPart, CustomPartSchema, type DataPart, DataPartSchema, type MediaPart, MediaPartSchema, MediaSchema, type MultipartToolResponse, MultipartToolResponseSchema, type Part, PartSchema, type ReasoningPart, ReasoningPartSchema, type ResourcePart, ResourcePartSchema, type TextPart, TextPartSchema, type ToolRequest, type ToolRequestPart, ToolRequestPartSchema, ToolRequestSchema, type ToolResponse, type ToolResponsePart, ToolResponsePartSchema, ToolResponseSchema };