@hivetechs/hive-ai
Version:
Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API
45 lines • 1.67 kB
TypeScript
/**
* Enhanced Prompts for Consensus Pipeline
*
* This file contains enhanced prompts and helper functions for the consensus pipeline.
* These prompts are designed to ensure each model receives clear instructions,
* maintains conversation context, and builds meaningfully on previous stages' outputs.
*/
export declare function detectQuestionType(prompt: string): {
isCodeQuestion: boolean;
isMathQuestion: boolean;
isTechnicalQuestion: boolean;
};
export declare function countTechnicalTerms(content: string): number;
export declare function countCodeBlocks(content: string): number;
export declare const basePrompts: {
generator: {
system: string;
user: (prompt: string, conversationId: string) => string;
};
refiner: {
system: string;
user: (prompt: string, generatorOutput: string, conversationId: string) => string;
};
validator: {
system: string;
user: (prompt: string, refinerOutput: string, conversationId: string) => string;
};
curator: {
system: string;
user: (prompt: string, validatorOutput: string, conversationId: string) => string;
};
};
export declare function getEnhancedPrompts(prompt: string, conversationId: string): any;
export declare function recordStageMetrics(stage: string, inputContent: string, outputContent: string): {
stage: string;
inputWordCount: number;
outputWordCount: number;
contentChangePercentage: string;
technicalTermsCount: number;
technicalTermsAdded: number;
codeBlocksCount: number;
codeBlocksAdded: number;
timestamp: string;
};
//# sourceMappingURL=enhanced-prompts.d.ts.map