INNER CODE UNIT · TypeScript

getEvalReport

HoangNguyen0403/agent-skills-standard · mcp/src/tools/index.ts:885

export async function getEvalReport(
  _args: Record<string, never>,
  ctx: ToolContext,
): Promise<ToolResult> {
  const report = readEvalsReport(ctx.projectRoot);
  if (!report) {
    return {
      content: [
        {
          type: "text",
          text: "No `evals-report.md` found at the project root yet. Run the `evals-run` workflow (see docs/EVALS.md) and then `pnpm evals:report` to generate one.",
        },
      ],
    };
  }
  return { content: [{ type: "text", text: report }] };
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…