Download backend/src/types.ts from picklefried706/NEON: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/picklefried706/NEON/resolve/main/backend/src/types.ts
- Command line
-
hf download hf://picklefried706/NEON/backend/src/types.ts
-
curl -L -o types.ts https://huggingface.co/picklefried706/NEON/resolve/main/backend/src/types.ts
636 Bytes
| export type Role = "system" | "user" | "assistant" | "tool"; | |
| export type ChatMessage = { | |
| id: string; | |
| role: Role; | |
| content: string; | |
| createdAt: number; | |
| }; | |
| export type ChatRequest = { | |
| sessionId: string; | |
| message: string; | |
| mode?: "auto" | "search" | "no-search"; | |
| }; | |
| export type SearchResult = { | |
| title: string; | |
| url: string; | |
| snippet: string; | |
| score: number; | |
| content: string; | |
| }; | |
| export type SearchSummary = { | |
| query: string; | |
| results: Array<{ | |
| title: string; | |
| url: string; | |
| snippet: string; | |
| score: number; | |
| }>; | |
| topContent: Array<{ | |
| url: string; | |
| title: string; | |
| content: string; | |
| }>; | |
| }; | |