mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 16:30:27 +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
38 lines
No EOL
1.9 KiB
TypeScript
38 lines
No EOL
1.9 KiB
TypeScript
import { AIFunction } from "Enums/AIFunction";
|
|
import type { IAIFunctionDefinition } from "../IAIFunctionDefinition";
|
|
|
|
export const SubmitPlan: IAIFunctionDefinition = {
|
|
name: AIFunction.SubmitPlan,
|
|
description: `Submits an execution plan with ordered, actionable steps.
|
|
Use this function after analyzing the goal and vault context to provide a structured
|
|
plan that will be followed step-by-step. Each step should be clear and executable.`,
|
|
|
|
parameters: {
|
|
type: "object",
|
|
properties: {
|
|
steps: {
|
|
type: "array",
|
|
description: "Ordered array of execution steps. Each step represents an actionable task that moves toward the goal.",
|
|
items: {
|
|
type: "object",
|
|
properties: {
|
|
description: {
|
|
type: "string",
|
|
description: "Brief summary of what this step accomplishes (e.g., 'Search for ML notes', 'Create index file'). This is user-facing and should be concise."
|
|
},
|
|
instruction: {
|
|
type: "string",
|
|
description: "Detailed instructions for executing this step. Should be specific enough to guide the execution without ambiguity. Examples: 'Search vault for all notes with tag #machine-learning using search_vault_files', 'Create new file ML-Index.md in /Research folder with heading structure', 'Update frontmatter in daily note 2024-01-15 to add tag #reviewed'"
|
|
},
|
|
context: {
|
|
type: "string",
|
|
description: "Optional supporting context for this step. May include extracts from vault notes, relevant information gathered during planning, or other contextual details that will help execute this step effectively."
|
|
}
|
|
},
|
|
required: ["description", "instruction"]
|
|
}
|
|
}
|
|
},
|
|
required: ["steps"]
|
|
}
|
|
}; |