mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
Replace the single Replan tool with three targeted alternatives: ReviseStep, RevisePlan, and SkipStep. This gives the orchestration agent more precise control over plan recovery — revising only the current step, replacing all remaining steps, or skipping a step entirely — rather than triggering a full replan each time. Also give the orchestration agent read access to vault files so it can resolve execution failures without routing back to the planning agent, and update the execution agent prompt to stop it from attempting self-recovery (gap resolution is now the orchestrator's responsibility).
40 lines
No EOL
1.2 KiB
TypeScript
40 lines
No EOL
1.2 KiB
TypeScript
export enum AITool {
|
|
SearchVaultFiles = "search_vault_files",
|
|
ReadVaultFiles = "read_vault_files",
|
|
WriteVaultFile = "write_vault_file",
|
|
PatchVaultFile = "patch_vault_file",
|
|
DeleteVaultFiles = "delete_vault_files",
|
|
MoveVaultFiles = "move_vault_files",
|
|
ListVaultFiles = "list_vault_files",
|
|
|
|
// only used by gemini
|
|
RequestWebSearch = "request_web_search",
|
|
|
|
// multi agent calls
|
|
ExecuteWorkflow = "execute_workflow",
|
|
SubmitPlan = "submit_plan",
|
|
CompleteTask = "complete_task",
|
|
CompleteStep = "complete_step",
|
|
SkipStep = "skip_step",
|
|
ReviseStep = "revise_step",
|
|
RevisePlan = "revise_plan",
|
|
ContinuePlanExecution = "continue_plan_execution",
|
|
CompletePlan = "complete_plan",
|
|
CancelPlan = "cancel_plan",
|
|
AskUserQuestionPlanning = "ask_user_question_planning",
|
|
AskUserQuestionExecution = "ask_user_question_execution",
|
|
|
|
Unknown = "unknown"
|
|
}
|
|
|
|
export function fromString(functionName: string): AITool {
|
|
const enumValue = Object.values(AITool).find((value: string) => value === functionName);
|
|
if (enumValue) {
|
|
return enumValue as AITool;
|
|
}
|
|
return AITool.Unknown;
|
|
}
|
|
|
|
export function isAITool(value: unknown, aiTool: AITool): value is AITool {
|
|
return value === aiTool;
|
|
} |