Files
clawdbot/src/agents/tool-summaries.ts
Peter Steinberger c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00

12 lines
395 B
TypeScript

import type { AgentTool } from "@mariozechner/pi-agent-core";
export function buildToolSummaryMap(tools: AgentTool[]): Record<string, string> {
const summaries: Record<string, string> = {};
for (const tool of tools) {
const summary = tool.description?.trim() || tool.label?.trim();
if (!summary) continue;
summaries[tool.name.toLowerCase()] = summary;
}
return summaries;
}