mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-08-28 19:40:37 +02:00
extend tests for input guardrailing
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user