mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 16:30:27 +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
33 lines
No EOL
1.8 KiB
TypeScript
33 lines
No EOL
1.8 KiB
TypeScript
import { AIFunction } from "Enums/AIFunction";
|
|
import type { IAIFunctionDefinition } from "../IAIFunctionDefinition";
|
|
|
|
export const CompleteTask: IAIFunctionDefinition = {
|
|
name: AIFunction.CompleteTask,
|
|
description: `Signals that you have finished executing all of your assigned instructions. This function MUST be called exactly once, only after you have fully completed or can no longer make progress on everything you were asked to do.
|
|
|
|
Do NOT call this function:
|
|
- After completing individual actions or sub-tasks
|
|
- While you still have remaining work from your instructions
|
|
|
|
Call this function only when:
|
|
- You have completed everything you were instructed to do (success: true)
|
|
- You have encountered a blocker that prevents further progress on your instructions (success: false)`,
|
|
parameters: {
|
|
type: "object",
|
|
properties: {
|
|
success: {
|
|
type: "boolean",
|
|
description: "Whether you successfully completed all of your assigned instructions. Set to true only if everything was accomplished, false if anything remains incomplete or failed."
|
|
},
|
|
description: {
|
|
type: "string",
|
|
description: "A summary of what was accomplished, any outputs produced, or what prevented completion."
|
|
},
|
|
context: {
|
|
type: "string",
|
|
description: "Optional contextual information that should be preserved or passed forward after task completion. Include any relevant state, findings, file paths, or intermediate results that might be useful for subsequent operations or for the user to understand what was done. Examples: 'Created 3 new notes in /Projects folder', 'Found configuration in settings.json', 'Modified files: note1.md, note2.md'"
|
|
}
|
|
},
|
|
required: ["success", "description"]
|
|
}
|
|
}; |