MCPcopy Create free account
hub / github.com/cortexkit/magic-context / fillTemplate

Function fillTemplate

packages/plugin/scripts/longmemeval/judge.ts:44–46  ·  view source on GitHub ↗
(template: string, question: string, answer: string, response: string)

Source from the content-addressed store, hash-verified

42}
43
44function fillTemplate(template: string, question: string, answer: string, response: string): string {
45 return template.replace("{}", question).replace("{}", answer).replace("{}", response);
46}
47
48export function buildJudgePrompt(question: LongMemEvalQuestion, response: string): string {
49 if (question.question_id.endsWith("_abs")) {

Callers 1

buildJudgePromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected