followupquestionbuilder
codebolt.codeboltutils.FollowUpQuestionBuilder(): LLMInferenceParamsCreates the next prompt for the AI agent by incorporating previous conversation, tool results, and summarizing long interactions when needed.
Note: The
FollowUpQuestionBuilderutility 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 { FollowUpPromptBuilder } = require("@codebolt/codeboltjs/utils");
// Placeholder for future implementation
Planned Methods
addPreviousConversation(previousPrompt): Adds the previous conversation context to the new promptaddToolResult(toolResults): Incorporates tool execution results into the promptcheckAndSummarizeConversationIfLong(): Automatically summarizes the conversation if it becomes too longbuildInferenceParams(): Builds and returns the final inference parameters for the next AI interaction