promptBuilder
codebolt.codeboltutils.PromptBuilder(): LLMInferenceParamsConstructs a smart prompt for the AI agent by combining tools, environment details, system instructions, and task-specific information.
Note: The
PromptBuilderutility class is planned/aspirational and not yet available in the codebase. The@codebolt/codeboltjs/utilsimport path does not exist yet. This documentation is a placeholder for a future implementation.
Planned Usage
const codebolt = require('@codebolt/codeboltjs').default;
// Note: This import path does not exist yet
// const { InitialPromptBuilder } = require("@codebolt/codeboltjs/utils");
// Placeholder for future implementation
Planned Methods
addMCPTools(): Adds MCP (Model Context Protocol) tools to the promptaddAgentTools(): Includes agent-specific tools in the promptaddEnvironmentDetails(): Adds environment context and detailsaddSystemPrompt(yamlFile, section, exampleFile): Loads system instructions from YAML configurationaddTaskInstruction(yamlFile, taskName): Adds specific task instructionsbuildInferenceParams(): Builds and returns the final inference parameters