@jss-rule-engine/chat
Version:
23 lines (22 loc) • 693 B
TypeScript
import { DatabaseService } from '@jss-rule-engine/workflow';
export interface AITool {
name: string;
description: string;
thresold: number;
topN: number;
indexId: string;
}
export interface AIOptions {
message: string;
instructions?: string;
dontSendMessage?: string;
tools?: AITool[];
dbService?: DatabaseService;
}
export declare class VercelAIService {
private static instance;
private constructor();
static getInstance(): VercelAIService;
ragTool(options: AIOptions, prompt: string, indexId: string, topN: number, thresold: number): Promise<string>;
generateResponse(options: AIOptions): Promise<string>;
}