import { b as i } from "./telemetry-Bf0GI6nJ.js";
import { d as a } from "./shared-types-CIxCt9tj.js";
const c = i(a.Agent, "MessageAnalyzer");
function y(t) {
  if (!t)
    return;
  const s = t.entries.filter((e) => e.type === "text");
  if (s.length === 0)
    return;
  const r = s.map((e) => e.text).join(`
`);
  if (!r || !r.trim().endsWith(":") || t.entries.some((e) => e.type === "toolUse"))
    return;
  const n = r.split(/[.!?]\s+/), o = n[n.length - 1].toLowerCase();
  if (["let's", "start", "create", "file", "addressing"].some((e) => o.includes(e.toLowerCase()))) {
    c.reportCountMetrics({ MissingExpectedToolUse: 1 });
    return;
  }
}
export {
  y as a
};
//# sourceMappingURL=message-analyzer-BAqw8PNp.js.map
