UNPKG

query-agent

Version:

An AI-powered database query agent that integrates with existing Express apps using Socket.IO and HTTP routes

24 lines (20 loc) 506 B
import { Server } from "socket.io"; import { Express } from "express"; export interface QueryAgentOptions { executeSQLQuery: (query: string) => Promise<any>; corsOptions?: { origin: string | string[] | boolean; methods?: string[]; credentials?: boolean; [key: string]: any; }; } export interface QueryAgentReturn { io: Server; queryAgentNamespace: any; } declare function init( serverOrIo: Server | any, options: QueryAgentOptions ): QueryAgentReturn; export default init;