@mettamatt/code-reasoning
Version:
Enhanced MCP server for code reasoning using sequential thinking methodology, optimized for programming tasks
47 lines (46 loc) • 1.14 kB
TypeScript
/**
* Essential types for prompt evaluation
*/
import { PromptScenario } from './scenarios.js';
export interface ThoughtData {
thought: string;
thought_number: number;
total_thoughts: number;
next_thought_needed: boolean;
is_revision?: boolean;
revises_thought?: number;
branch_from_thought?: number;
branch_id?: string;
needs_more_thoughts?: boolean;
}
export type TestStatus = 'PASS' | 'FAIL';
export interface CheckResult {
name: string;
passed: boolean;
details?: string;
}
export interface TestResult {
scenarioId: string;
scenarioName: string;
status: TestStatus;
checks: CheckResult[];
failureMessage?: string;
thoughtChain: ThoughtData[];
date: string;
modelId: string;
temperature?: number;
qualityScore?: number;
qualityJustification?: string;
promptName: string;
corePrompt: string;
systemPrompt: string;
scenarioPrompt: string;
scenarioDetails: PromptScenario;
}
export interface ApiOptions {
model?: string;
maxTokens?: number;
temperature?: number;
retryCount?: number;
}
export { PromptScenario };