vision-agent / lib /types.ts
wuyiqunLu
feat: add responseBody field and serving data to hooks (#93)
bc1cf4e unverified
raw
history blame
574 Bytes
import { Chat, Message } from '@prisma/client';
import { type Message as MessageAI } from 'ai';
export type ChatWithMessages = Chat & { messages: Message[] };
export type MessageUserInput = Pick<Message, 'prompt' | 'mediaUrl'>;
export type MessageAssistantResponse = {
result?: PrismaJson.FinalCodeBody;
response: string;
responseBody: PrismaJson.AgentResponseBodies;
};
export type MessageUI = Pick<MessageAI, 'role' | 'content' | 'id'>;
export interface SignedPayload {
id: string;
publicUrl: string;
signedUrl: string;
fields: Record<string, string>;
}