feat: add two-layer tool call validation system (proactive + reactive) (#249)

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
This commit is contained in:
Sisyphus
2025-12-26 03:36:27 +09:00
committed by GitHub
parent ad2bd673c4
commit 9bc2360d31
9 changed files with 282 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
export const HOOK_NAME = "tool-call-validator"
export const INVALID_TOOL_PLACEHOLDER_PREFIX = "[Invalid tool call: "
export const INVALID_TOOL_PLACEHOLDER_SUFFIX = " - tool does not exist]"
export const PAIRED_RESULT_PLACEHOLDER =
"[Tool result removed - corresponding tool call was invalid]"