import {
  getEvaluator,
  getEvaluatorType
} from "./chunk-GWEW5XON.js";
import "./chunk-CAY57CKF.js";
import "./chunk-KOO5733S.js";

// src/tools/get-evaluator.ts
async function handleGetEvaluator(params) {
  const evaluator = await getEvaluator(params.idOrSlug);
  const evaluatorType = getEvaluatorType(evaluator);
  const lines = [];
  lines.push(`# Evaluator: ${evaluator.name}
`);
  lines.push(`**ID**: ${evaluator.id}`);
  if (evaluator.slug) lines.push(`**Slug**: ${evaluator.slug}`);
  lines.push(`**Kind**: ${evaluator.type}`);
  if (evaluatorType) lines.push(`**Evaluator Type**: ${evaluatorType}`);
  if (evaluator.config) {
    lines.push("\n## Config");
    lines.push("```json");
    lines.push(JSON.stringify(evaluator.config, null, 2));
    lines.push("```");
  }
  if (Array.isArray(evaluator.fields) && evaluator.fields.length > 0) {
    lines.push("\n## Input Fields");
    for (const field of evaluator.fields) {
      const opt = field.optional ? " (optional)" : "";
      lines.push(`- **${field.identifier}** (${field.type})${opt}`);
    }
  }
  if (Array.isArray(evaluator.outputFields) && evaluator.outputFields.length > 0) {
    lines.push("\n## Output Fields");
    for (const field of evaluator.outputFields) {
      lines.push(`- **${field.identifier}** (${field.type})`);
    }
  }
  if (evaluator.workflowName) {
    lines.push(`
**Workflow**: ${evaluator.workflowName}`);
  }
  return lines.join("\n");
}
export {
  handleGetEvaluator
};
//# sourceMappingURL=get-evaluator-HCVXNPZR.js.map