vision-agent / lib /types.ts
MingruiZhang's picture
feat: UI Improvements (#72)
0fd8446 unverified
raw
history blame
542 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 = Partial<
Pick<Message, 'response' | 'result'>
>;
export type MessageUI = Pick<MessageAI, 'role' | 'content' | 'id'> & {
mediaUrl?: string;
};
export interface SignedPayload {
id: string;
publicUrl: string;
signedUrl: string;
fields: Record<string, string>;
}