@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
23 lines (22 loc) • 928 B
TypeScript
import type { EnhancedEvaluationContext, GetPromptFunction } from "../types/index.js";
/**
* A flexible class for building evaluation prompts. It allows for custom prompt
* generation logic to be injected while ensuring a consistent output format.
*/
export declare class PromptBuilder {
/**
* Builds the final evaluation prompt.
*
* @param context The rich context for the evaluation.
* @param getPrompt An optional function to generate the main body of the prompt.
* If not provided, a default prompt is used.
* @returns The complete prompt string to be sent to the judge LLM.
*/
buildEvaluationPrompt(context: EnhancedEvaluationContext, getPrompt?: GetPromptFunction): string;
/**
* The default prompt generation logic.
* @param context The prepared context strings.
* @returns The default prompt body.
*/
private getDefaultPrompt;
}