mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
- Move prompts from AIClasses to AIPrompts directory - Replace centralized IPrompt injection with direct property setters on IAIClass - Remove allowDestructiveActions parameter from streamRequest methods - Add toolDefinitions, systemPrompt, and userInstruction properties to IAIClass - Refactor AIFunctionDefinitions to static methods with agent-specific tool sets - Add planning agent function definitions (CreatePlan, Replan, CompleteStep, SubmitPlan) - Create AIControllerService to handle agent orchestration - Add execution plan related copy strings and replacement utility - Update all AI providers (Claude, Gemini, OpenAI) to use new architecture
30 lines
1 KiB
TypeScript
30 lines
1 KiB
TypeScript
import { AIFunction } from "Enums/AIFunction";
|
|
import type { IAIFunctionDefinition } from "../IAIFunctionDefinition";
|
|
|
|
export const CompleteStep: IAIFunctionDefinition = {
|
|
name: AIFunction.CompleteStep,
|
|
description: `Marks a specific step in the current execution plan as completed.
|
|
|
|
Use this function to track your progress through a plan created by the planning agent.
|
|
This helps maintain accurate state of which steps have been executed and provides
|
|
visibility to the user about task progress.
|
|
|
|
Call this function:
|
|
- Immediately after successfully completing a plan step
|
|
- Before moving on to the next step in the plan
|
|
- When a step's objectives have been fully satisfied
|
|
|
|
Do NOT use this function:
|
|
- For steps that failed
|
|
- For partial completion of a step`,
|
|
parameters: {
|
|
type: "object",
|
|
properties: {
|
|
step_number: {
|
|
type: "number",
|
|
description: "The number of the step being marked as completed (1-indexed). This should correspond to the step number in the plan."
|
|
}
|
|
},
|
|
required: ["step_number"]
|
|
}
|
|
}
|