extend tests for input guardrailing

This commit is contained in:
Luca Beurer-Kellner
2025-03-30 09:33:48 +02:00
committed by Hemang
parent 2a66582c7c
commit 7f820bd79f
3 changed files with 113 additions and 2 deletions
@@ -13,4 +13,10 @@ raise "Dublin detected in the response" if:
raise "get_capital is called with Germany as argument" if:
(call: ToolCall)
call is tool:get_capital
call.function.arguments["country_name"] == "Germany"
call.function.arguments["country_name"] == "Germany"
# For input guardrailing specifically
raise "Users must not mention the magic phrase 'Fight Club'" if:
(msg: Message)
msg.role == "user"
"Fight Club" in msg.content