@squidcloud/client
Version:
A typescript implementation of the Squid client
29 lines (28 loc) • 1.17 kB
TypeScript
import { AiKnowledgeBase } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
import { AiKnowledgeBaseId } from '../../../internal-common/src/public-types/communication.public-types';
import { AiKnowledgeBaseReference } from './ai-knowledge-base-client-reference';
/**
* AiKnowledgeBaseClient manages AI knowledgebase interactions, including
* listing knowledgebases.
*
* @category AI
*/
export declare class AiKnowledgeBaseClient {
private readonly rpcManager;
private readonly jobClient;
/**
* Retrieves an instance of AiKnowledeBaseReference for a specific kb ID.
* This reference provides methods for interacting with the knowledgebase.
*/
knowledgeBase(id: AiKnowledgeBaseId): AiKnowledgeBaseReference;
/**
* Lists all knowledgebases available in the system.
* @returns A promise that resolves to an array of AiKnowledgeBase instances.
*/
listKnowledgeBases(): Promise<Array<AiKnowledgeBase>>;
/**
* Deletes the AI knowledge base.
* @returns A promise that resolves when the deletion is complete.
*/
delete(id: AiKnowledgeBaseId): Promise<void>;
}