@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
20 lines (19 loc) • 1.04 kB
TypeScript
/**
* A scripted stand-in for the dreaming model. It answers each fixture
* situation only when the prompt actually carries the evidence a real model
* would need, so a passing eval shows that collect and the prompt surfaced
* the right inputs, not just that the scorer matches a canned answer.
*/
import type { DreamChange } from "./dream-adapter.js";
import type { HelperRunner } from "./dream-adapter.js";
import { type EvalFixture } from "./fixture.js";
export interface ScriptedAnswer {
changes: DreamChange[];
/** Situations the prompt lacked the evidence for. */
missing: string[];
}
export declare function scriptedChanges(prompt: string, fixture: EvalFixture): ScriptedAnswer;
/** The changeset JSON a model would print for this prompt. */
export declare function scriptedReply(prompt: string, fixture: EvalFixture): string;
/** A `runHelper`-shaped runner that answers with the scripted reply and records each prompt. */
export declare function scriptedRunner(fixture: EvalFixture, prompts?: string[]): HelperRunner;