sync: update from private repo (f6d625db)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-26 03:35:45 +00:00
parent 29ccaf1e92
commit b857c33ef6
371 changed files with 31312 additions and 8172 deletions
+8 -3
View File
@@ -71,12 +71,17 @@ export async function executeTool(
const category: 'requested' | 'unknown' = known.includes(toolName) || isMcp ? 'requested' : 'unknown';
if (category === 'unknown') {
// The requested tool does not exist in the catalog (likely a hallucinated
// name). Return a HARD ERROR so the agent does not mistake it for a pending
// approval or a successful call. Still recorded for diagnostics (only when a
// recorder is wired — `?.` is a silent no-op otherwise, so the message must
// NOT claim it was recorded).
ctx.recordToolRequest?.({ toolName, reason, category: 'unknown' });
return {
output:
`"${toolName}" というツールは存在しません(要求は記録しました)。利用可能なツールで進めてください。` +
` 何が使えるかは ReadToolDoc などで確認できます。`,
isError: false,
`"${toolName}" というツールは存在しません。RequestTool で要求できるのは実在するツール名だけです。` +
` これは承認待ちではありません — 利用可能なツールで進めてください(一覧は ReadToolDoc 等で確認できます)。`,
isError: true,
};
}