langflow-chatbot
Version:
Add a Langflow-powered chatbot to your website.
6 lines (5 loc) • 663 B
TypeScript
import http from 'http';
import { LangflowClient } from '@datastax/langflow-client';
import { Profile } from '../types';
export declare function handleRequest(req: http.IncomingMessage, res: http.ServerResponse, chatbotConfigurations: Map<string, Profile>, langflowClient: LangflowClient | undefined, // Can be undefined if not initialized
langflowEndpointUrl: string | undefined, langflowApiKey: string | undefined, makeDirectLangflowApiRequest: (res: http.ServerResponse, path: string, method: 'GET', queryParams?: URLSearchParams) => Promise<Response | null>, proxyApiBasePath: string, preParsedBody: any | undefined, isBodyPreParsed: boolean): Promise<void>;