| 54 | } |
| 55 | |
| 56 | export interface Query { |
| 57 | prompt: string; |
| 58 | response?: string; |
| 59 | feedback?: FEEDBACK; |
| 60 | conversationId?: string | null; |
| 61 | title?: string | null; |
| 62 | thought?: string; |
| 63 | sources?: { title: string; text: string; link: string }[]; |
| 64 | tool_calls?: ToolCallsType[]; |
| 65 | error?: string; |
| 66 | attachments?: { id: string; fileName: string }[]; |
| 67 | structured?: boolean; |
| 68 | schema?: object; |
| 69 | research?: ResearchState; |
| 70 | // WAL placeholder id; lets the client tail an in-flight stream. |
| 71 | messageId?: string; |
| 72 | messageStatus?: MessageStatus; |
| 73 | requestId?: string; |
| 74 | lastHeartbeatAt?: string; |
| 75 | // Persisted so Retry can re-send the same key for server-side dedup. |
| 76 | idempotencyKey?: string; |
| 77 | } |
| 78 | |
| 79 | export interface RetrievalPayload { |
| 80 | question: string; |
nothing calls this directly
no outgoing calls
no test coverage detected