mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 16:30:27 +00:00
19 lines
No EOL
900 B
TypeScript
19 lines
No EOL
900 B
TypeScript
import type { IStreamChunk } from "Services/StreamingService";
|
|
import type { Conversation } from "Conversations/Conversation";
|
|
import type { Attachment } from "Conversations/Attachment";
|
|
import type { IAIToolDefinition } from "./ToolDefinitions/IAIToolDefinition";
|
|
import type { AIProvider } from "Enums/ApiProvider";
|
|
import type { AgentType } from "Enums/AgentType";
|
|
import type { AIToolUsageMode } from "Enums/AIToolUsageMode";
|
|
|
|
export interface IAIClass {
|
|
get currentProvider(): AIProvider;
|
|
set agentType(agentType: AgentType);
|
|
set systemPrompt(systemPrompt: string);
|
|
set userInstruction(userInstruction: string);
|
|
set aiToolDefinitions(aiToolDefinitions: IAIToolDefinition[]);
|
|
set aiToolUsageMode(mode: AIToolUsageMode);
|
|
|
|
streamRequest(conversation: Conversation): AsyncGenerator<IStreamChunk, void, unknown>;
|
|
formatBinaryFiles(attachments: Attachment[]): string;
|
|
} |