mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-14 15:48:15 +00:00
feat(types): add ToolMessage, Message
This commit is contained in:
@@ -3,6 +3,15 @@ export type ChatTurnMessage = {
|
||||
content: string;
|
||||
};
|
||||
|
||||
export type ToolMessage = {
|
||||
role: 'tool';
|
||||
id: string;
|
||||
name: string;
|
||||
content: string;
|
||||
};
|
||||
|
||||
export type Message = ChatTurnMessage | ToolMessage;
|
||||
|
||||
export type Chunk = {
|
||||
content: string;
|
||||
metadata: Record<string, any>;
|
||||
|
||||
Reference in New Issue
Block a user