import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChatFile, ChatFile$Outbound } from "./chatfile.js"; import { ChatMessageCitation, ChatMessageCitation$Outbound } from "./chatmessagecitation.js"; import { QuerySuggestion, QuerySuggestion$Outbound } from "./querysuggestion.js"; import { StructuredResult, StructuredResult$Outbound } from "./structuredresult.js"; import { ToolInfo, ToolInfo$Outbound } from "./toolinfo.js"; /** * Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. */ export type ChatMessageFragment = { /** * An array of entities in the work graph retrieved via a data request. */ structuredResults?: Array | undefined; /** * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. */ trackingToken?: string | undefined; text?: string | undefined; querySuggestion?: QuerySuggestion | undefined; /** * Structure for file uploaded by a user for Chat. */ file?: ChatFile | undefined; action?: ToolInfo | undefined; /** * Information about the source for a ChatMessage. */ citation?: ChatMessageCitation | undefined; }; /** @internal */ export declare const ChatMessageFragment$inboundSchema: z.ZodType; /** @internal */ export type ChatMessageFragment$Outbound = { structuredResults?: Array | undefined; trackingToken?: string | undefined; text?: string | undefined; querySuggestion?: QuerySuggestion$Outbound | undefined; file?: ChatFile$Outbound | undefined; action?: ToolInfo$Outbound | undefined; citation?: ChatMessageCitation$Outbound | undefined; }; /** @internal */ export declare const ChatMessageFragment$outboundSchema: z.ZodType; export declare function chatMessageFragmentToJSON(chatMessageFragment: ChatMessageFragment): string; export declare function chatMessageFragmentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatmessagefragment.d.ts.map