vision-agent / lib /types.ts
MingruiZhang's picture
feat: Internal page default filter out examples (#116)
1c2515f unverified
raw
history blame contribute delete
714 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.FinalResultBody;
response: string;
responseBody: PrismaJson.AgentResponseBodies;
streamDuration: number;
};
export type MessageUI = Pick<MessageAI, 'role' | 'content' | 'id'> & {
media?: string[];
};
export interface SignedPayload {
id: string;
publicUrl: string;
signedUrl: string;
fields: Record<string, string>;
}
export interface MessageFilterParams {
date: string;
includeExamples: boolean;
}