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:
5
src/hooks/tool-call-validator/constants.ts
Normal file
5
src/hooks/tool-call-validator/constants.ts
Normal 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]"
|
||||
Reference in New Issue
Block a user