UNPKG

@eko-ai/eko

Version:

Empowering language to transform human words into action.

49 lines 1.65 kB
import TaskContext from "../agent/agent-context"; import { ChatContext } from "../chat/chat-context"; import { ChatService } from "../service/chat-service"; import { BrowserService } from "../service/browser-service"; export interface MemoryConfig { maxMessageNum: number; maxInputTokens: number; enableCompression: boolean; compressionThreshold: number; compressionMaxLength: number; } export type Config = { name: string; mode: "fast" | "normal" | "expert"; platform: "windows" | "mac" | "linux"; maxReactNum: number; maxOutputTokens: number; maxRetryNum: number; agentParallel: boolean; workflowConfirm: boolean; compressThreshold: number; compressTokensThreshold: number; largeTextLength: number; fileTextMaxLength: number; maxDialogueImgFileNum: number; toolResultMultimodal: boolean; parallelToolCalls: boolean; markImageMode: "dom" | "draw"; expertModeTodoLoopNum: number; memoryConfig: MemoryConfig; }; export declare enum GlobalPromptKey { planner_system = "planner_system", planner_example = "planner_example", planner_user = "planner_user", agent_system = "agent_system", chat_system = "chat_system", webpage_qa_prompt = "webpage_qa_prompt", deep_action_description = "deep_action_description", deep_action_param_task_description = "deep_action_param_task_description" } export type Global = { chatMap: Map<string, ChatContext>; taskMap: Map<string, TaskContext>; prompts: Map<string, string>; chatService?: ChatService; browserService?: BrowserService; }; //# sourceMappingURL=config.types.d.ts.map