mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
- Add context_for_next_step parameter to CompleteStep for passing execution history - Add context parameter to CompleteTask for preserving task completion state - Update OrchestrationResult to handle context propagation between steps - Add debug color differentiation for agent types (Main, Execution, Orchestration, Planning) - Reorganize SearchTypes from Helpers to Types directory - Add justification requirement for execution deviations - Support reasonable deviations in orchestration plan validation - Refactor dependency service with TryResolve utility - Add whitespace cleanup to Semaphore class
26 lines
No EOL
1.6 KiB
TypeScript
26 lines
No EOL
1.6 KiB
TypeScript
import { AIFunction } from "Enums/AIFunction";
|
|
import type { IAIFunctionDefinition } from "../IAIFunctionDefinition";
|
|
|
|
export const CompleteStep: IAIFunctionDefinition = {
|
|
name: AIFunction.CompleteStep,
|
|
description: `Signals that plan execution should proceed to the next step without modification.
|
|
|
|
- Use this tool when the most recent step completed successfully and its results align with the plan's expectations.
|
|
- This is the appropriate choice when everything is working as intended and no course correction is needed.
|
|
- Do NOT use this if there were any failures, unexpected results, or if the plan needs adjustment based on new information.`,
|
|
parameters: {
|
|
type: "object",
|
|
properties: {
|
|
context_for_next_step: {
|
|
type: "string",
|
|
description: "Optional contextual information needed for the next step's execution, derived from any relevant parts of the execution history so far. Analyze what the next step requires and provide only the pertinent information from previous steps (not just the most recent one). Examples: 'Files created: /notes/summary.md, /notes/details.md', 'Search found 5 entries in tags: work, personal', 'Current state: theme=dark, sidebar=collapsed'. Omit if the next step can execute independently without prior results."
|
|
},
|
|
confirm_completion: {
|
|
type: "boolean",
|
|
description: "Safety flag that must be explicitly set to true to confirm the step completion is intentional. This prevents accidental completions.",
|
|
default: false
|
|
}
|
|
},
|
|
required: ["confirm_completion"]
|
|
}
|
|
} |