langflow-chatbot
Version:
Add a Langflow-powered chatbot to your website.
23 lines (22 loc) • 832 B
TypeScript
import http from 'http';
import { Profile, LangflowProxyConfig } from './types';
export declare class LangflowProxyService {
private langflowClient;
private flowConfigs;
private langflowConnectionDetails;
private proxyApiBasePath;
private flowMapper;
private initializationPromise;
private isInitialized;
constructor(config: LangflowProxyConfig);
private _internalAsyncInit;
getChatbotProfile(profileId: string): Promise<Profile | undefined>;
getLangflowConnectionDetails(): {
endpoint_url: string;
api_key?: string;
};
getAllFlowConfigs(): Promise<Map<string, Profile>>;
getAllChatbotProfiles(): Promise<Map<string, Profile>>;
private _makeDirectLangflowApiRequest;
handleRequest(req: http.IncomingMessage, res: http.ServerResponse): Promise<void>;
}