/* * ============================================================================= * VibeQuant (vquant) — AI-Powered Financial Intelligence Platform * ----------------------------------------------------------------------------- * File: shared/types.ts * * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Website: https://www.spboucher.ai * Demo: https://www.vquant.ai * License: MIT (see LICENSE) * * Copyright © 2026 Simon-Pierre Boucher. All rights reserved. * ============================================================================= */ /** * Shared types for API requests/responses. * These are decoupled from the ORM schema and used across client + server. */ export interface SearchResult { title: string; url: string; snippet: string; favicon?: string; rank: number; } export interface ClaudeMessage { role: "user" | "assistant"; content: string; } export interface ClaudeToolCall { name: string; input: Record; } export interface ClaudeToolResult { tool_use_id: string; content: string; } export interface ChatRequest { query: string; sessionId?: string; } export interface ChatResponse { answer: string; sources: SearchResult[]; sessionId: string; } export interface ConversationMessage { question: string; answer: string; }