feat(types): add message & chunk type

This commit is contained in:
ItzCrazyKns
2025-11-18 01:17:19 +05:30
parent a00f2231d4
commit f6dac43d7a

9
src/lib/types.ts Normal file
View File

@@ -0,0 +1,9 @@
type Message = {
role: 'user' | 'assistant' | 'system';
content: string;
}
type Chunk = {
content: string;
metadata: Record<string, any>;
}