Files
openclaw/src/agents/tool-error-summary.ts
2026-04-02 17:05:05 +01:00

15 lines
361 B
TypeScript

export type ToolErrorSummary = {
toolName: string;
meta?: string;
error?: string;
timedOut?: boolean;
mutatingAction?: boolean;
actionFingerprint?: string;
};
const EXEC_LIKE_TOOL_NAMES = new Set(["exec", "bash"]);
export function isExecLikeToolName(toolName: string): boolean {
return EXEC_LIKE_TOOL_NAMES.has(toolName.trim().toLowerCase());
}