@voiceflow/base-types
Version:
Voiceflow base project types
56 lines • 1.47 kB
TypeScript
export declare enum GPT_MODEL {
DaVinci_003 = "text-davinci-003",
GPT_3_5_turbo = "gpt-3.5-turbo",
GPT_4 = "gpt-4",
GPT_4_turbo = "gpt-4-turbo",
GPT_4o = "gpt-4o",
CLAUDE_V1 = "claude-v1",
CLAUDE_V2 = "claude-v2",
CLAUDE_INSTANT_V1 = "claude-instant-v1"
}
export declare const ChatModels: GPT_MODEL[];
export declare enum PROMPT_MODE {
PROMPT = "prompt",
MEMORY = "memory",
MEMORY_PROMPT = "memory_prompt"
}
export declare enum DATA_SOURCE {
KNOWLEDGE_BASE = "knowledge_base",
DEFAULT = "default"
}
export declare const KNOWLEDGE_BASE_NOT_FOUND = "[not found]";
export interface AIModelParams {
model?: GPT_MODEL;
temperature?: number;
maxTokens?: number;
system?: string;
}
export interface AICompletionParams {
messages?: Message[];
}
export interface AIResponseFormatParams {
responseFormat?: string;
}
export interface AIContextParams {
mode: PROMPT_MODE;
prompt: string;
}
export interface AIKnowledgeContextParams {
mode: PROMPT_MODE;
prompt: string;
instruction?: string;
}
export interface AIKnowledgeParams {
source?: DATA_SOURCE;
}
export declare const AIMessageRole: {
readonly USER: "user";
readonly SYSTEM: "system";
readonly ASSISTANT: "assistant";
};
export type AIMessageRole = (typeof AIMessageRole)[keyof typeof AIMessageRole];
export interface Message {
role: AIMessageRole;
content: string;
}
//# sourceMappingURL=ai.d.ts.map