mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-09-30 18:29:38 +02:00
adjust guardrail failure address
This commit is contained in:
1 parent
e6da45bf74
commit
c16a12fdec
1 file changed
+1
-1
@@ -298,7 +298,7 @@ async def test_mcp_with_gateway_and_blocking_guardrails(
|
||||
assert len(annotations) == 1
|
||||
assert (
|
||||
annotations[0]["content"] == "get_last_message_from_user is called"
|
||||
and annotations[0]["address"] == "messages.0.tool_calls.0"
|
||||
and annotations[0]["address"] == "messages.2.tool_calls.0"
|
||||
)
|
||||
assert annotations[0]["extra_metadata"]["source"] == "guardrails-error"
|
||||
assert annotations[0]["extra_metadata"]["guardrail"]["action"] == "block"
|
||||
|
||||
Reference in new issue
Block a user