/** * 聊天历史响应 * 原始 Dart: ChatHistoryResponse (lib/data/models/chat/chat_response.dart) */ import { z } from "zod"; import { ChatMessageSchema } from "./chat_message"; export const ChatHistoryResponseSchema = z.object({ messages: z.array(ChatMessageSchema), total: z.number().default(0), limit: z.number(), offset: z.number(), }); export type ChatHistoryResponseInput = z.input; export type ChatHistoryResponseData = z.output;