baseai
Version:
The Web AI Framework Dev - BaseAI.dev
20 lines (18 loc) • 612 B
TypeScript
type LogCategories = 'pipe' | 'pipe.completion' | 'pipe.request' | 'pipe.response' | 'tool' | 'tool.calls' | 'memory' | 'memory.similarChunks' | 'memory.augmentedContext';
type NestedCategories = {
[key in LogCategories]?: boolean | NestedCategories;
};
type LoggerConfig = {
isEnabled: boolean;
logSensitiveData: boolean;
} & NestedCategories;
interface MemoryConfig {
useLocalEmbeddings: boolean;
}
interface BaseAIConfig {
log: LoggerConfig;
memory: MemoryConfig;
envFilePath: string;
}
export type { BaseAIConfig, LogCategories, LoggerConfig, MemoryConfig };