agent-modes.enum.ts•1.55 kB
/**
* Agent operation modes
*/
export enum AgentMode {
INTERACTIVE = 'interactive',
AUTONOMOUS = 'autonomous',
HYBRID = 'hybrid',
}
/**
* Available agent types in the system
*/
export enum AgentType {
SUPERVISOR = 'supervisor',
OPERATOR = 'operator',
SNAK = 'snak',
}
/**
* Maps mode enum values to their string representations
*/
export const AGENT_MODES = {
[AgentMode.AUTONOMOUS]: 'autonomous',
[AgentMode.HYBRID]: 'hybrid',
[AgentMode.INTERACTIVE]: 'interactive',
};
/**
* Graph execution modes
*/
export enum ExecutionMode {
PLANNING = 'PLANNING',
REACTIVE = 'REACTIVE',
AUTOMATIC = 'AUTOMATIC', // Let the system decide based on query complexity
}
/**
* Planner node types
*/
export enum PlannerNode {
CREATE_INITIAL_HISTORY = 'create_initial_history',
CREATE_INITIAL_PLAN = 'create_initial_plan',
PLAN_REVISION = 'plan_revision',
EVOLVE_FROM_HISTORY = 'evolve_from_history',
END_PLANNER_GRAPH = 'end_planner_graph',
PLANNER_VALIDATOR = 'planner_validator',
GET_PLANNER_STATUS = 'get_planner_status',
END = 'end',
}
/**
* Executor node types
*/
export enum ExecutorNode {
REASONING_EXECUTOR = 'reasoning_executor',
TOOL_EXECUTOR = 'tool_executor',
EXECUTOR_VALIDATOR = 'executor_validator',
HUMAN = 'human',
END_EXECUTOR_GRAPH = 'end_executor_graph',
END = 'end',
}
/**
* Memory node types
*/
export enum MemoryNode {
STM_MANAGER = 'stm_manager',
LTM_MANAGER = 'ltm_manager',
RETRIEVE_MEMORY = 'retrieve_memory',
END_MEMORY_GRAPH = 'end_memory_graph',
END = 'end',
}