import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChatMessage } from "./chatmessage.js"; import { ChatMetadata } from "./chatmetadata.js"; /** * A single response from the /chat backend. */ export type ChatResponse = { messages?: Array | undefined; /** * The id of the associated Chat the messages belong to, if one exists. */ chatId?: string | undefined; /** * Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. */ chat?: ChatMetadata | undefined; /** * Follow-up prompts for the user to potentially use */ followUpPrompts?: Array | undefined; /** * Time in milliseconds the backend took to respond to the request. */ backendTimeMillis?: number | undefined; /** * A token that is used to track the session. */ chatSessionTrackingToken?: string | undefined; }; /** @internal */ export declare const ChatResponse$inboundSchema: z.ZodType; export declare function chatResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatresponse.d.ts.map