UNPKG

@future-agi/sdk

Version:

We help GenAI teams maintain high-accuracy for their Models in production.

50 lines 1.46 kB
import { APIKeyAuth } from '../api/auth'; import { KnowledgeBaseConfig, KnowledgeBaseOptions } from './types'; /** * Knowledge Base client for managing knowledge bases and file operations */ export declare class KnowledgeBase extends APIKeyAuth { kb?: KnowledgeBaseConfig; private _validFilePaths; constructor(kbName?: string, options?: KnowledgeBaseOptions); /** * Update name of Knowledge Base and/or add files to it */ updateKb({ kbName, newName, filePaths }: { kbName: string; newName?: string; filePaths?: string | string[]; }): Promise<KnowledgeBase>; /** * Delete files from the Knowledge Base */ deleteFilesFromKb({ kbName, fileNames }: { kbName: string; fileNames: string[]; }): Promise<KnowledgeBase>; /** * Delete a Knowledge Base */ deleteKb({ kbNames, kbIds }?: { kbNames?: string | string[]; kbIds?: string | string[]; }): Promise<KnowledgeBase>; /** * Create a Knowledge Base */ createKb(name?: string, filePaths?: string | string[]): Promise<KnowledgeBase>; /** * List all knowledge bases */ listKbs(search?: string): Promise<KnowledgeBaseConfig[]>; /** * Get knowledge base by name */ private _getKbFromName; /** * Validate file paths */ private _checkFilePaths; } export default KnowledgeBase; //# sourceMappingURL=client.d.ts.map