mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-07-31 14:27:28 +02:00
Refactor tests.
This commit is contained in:
+3
-3
@@ -1,15 +1,15 @@
|
||||
# For Anthropic and OpenAI tests:
|
||||
# For Anthropic and OpenAI tests
|
||||
raise "Madrid detected in the response" if:
|
||||
(msg: Message)
|
||||
"Madrid" in msg.content
|
||||
|
||||
# For Gemini tests:
|
||||
# For Gemini tests
|
||||
raise "Dublin detected in the response" if:
|
||||
(msg: Message)
|
||||
(chunk: str) in text(msg.content)
|
||||
"Dublin" in chunk
|
||||
|
||||
# For all provider tests:
|
||||
# For all provider tests
|
||||
raise "get_capital is called with Germany as argument" if:
|
||||
(call: ToolCall)
|
||||
call is tool:get_capital
|
||||
Reference in New Issue
Block a user