UNPKG

@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

118 lines (117 loc) • 2.72 kB
/** * HIERARCHICAL PROMPT SYSTEM - USAGE EXAMPLES * ============================================ * * Demonstrates the 3-level prompt resolution with fallback mechanism */ declare const simpleWorkflow: { id: string; name: string; type: string; defaultSystemPrompt: string; defaultJudgePrompt: string; models: { provider: string; model: string; }[]; judge: { provider: string; model: string; criteria: string[]; outputFormat: string; includeReasoning: boolean; scoreScale: { min: number; max: number; }; }; }; declare const mixedWorkflow: { id: string; name: string; type: string; defaultSystemPrompt: string; defaultJudgePrompt: string; models: ({ provider: string; model: string; systemPrompt?: undefined; } | { provider: string; model: string; systemPrompt: string; })[]; judge: { provider: string; model: string; criteria: string[]; outputFormat: string; includeReasoning: boolean; scoreScale: { min: number; max: number; }; }; }; declare const advancedWorkflow: { id: string; name: string; type: string; defaultSystemPrompt: string; defaultJudgePrompt: string; models: { provider: string; model: string; systemPrompt: string; }[]; judge: { provider: string; model: string; criteria: string[]; outputFormat: string; customPrompt: string; systemPrompt: string; includeReasoning: boolean; scoreScale: { min: number; max: number; }; }; }; declare const multiJudgeWorkflow: { id: string; name: string; type: string; defaultSystemPrompt: string; defaultJudgePrompt: string; models: { provider: string; model: string; }[]; judges: ({ provider: string; model: string; criteria: string[]; outputFormat: string; customPrompt: string; systemPrompt: string; includeReasoning: boolean; scoreScale: { min: number; max: number; }; } | { provider: string; model: string; criteria: string[]; outputFormat: string; includeReasoning: boolean; scoreScale: { min: number; max: number; }; customPrompt?: undefined; systemPrompt?: undefined; })[]; }; export { simpleWorkflow, mixedWorkflow, advancedWorkflow, multiJudgeWorkflow };