(rng: &mut Rng)
| 253 | } |
| 254 | |
| 255 | fn gen_message(rng: &mut Rng) -> Message { |
| 256 | let roles = ["user", "assistant", "system", "tool"]; |
| 257 | let n = rng.below(4); |
| 258 | Message { |
| 259 | role: roles[rng.usize_below(roles.len() as u64)].to_string(), |
| 260 | content: (0..n).map(|_| gen_content_block(rng)).collect(), |
| 261 | reasoning_content: rng.opt_string(), |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | fn gen_verification_status(rng: &mut Rng) -> VerificationStatus { |
| 266 | match rng.below(4) { |
no test coverage detected