vibe_tests/base/result.rs
1//! Test result types.
2//! Returned by VibeTests::test().
3
4/// Result of a single test query across all models.
5#[derive(Debug)]
6pub struct TestResult {
7 /// True if all models passed.
8 pub success: bool,
9 /// Results per model.
10 pub models: Vec<TestModelResult>,
11}
12
13/// Result for a single model.
14#[derive(Debug)]
15pub struct TestModelResult {
16 /// Model name.
17 pub model: String,
18 /// MCP tool called (None if test failed).
19 pub tool: Option<String>,
20 /// Final text response from the model.
21 pub model_response: Option<String>,
22 /// Raw result from the MCP tool.
23 pub tool_response: Option<String>,
24 /// MCP error code (None if no error).
25 pub code: Option<i32>,
26}