| 74 | } |
| 75 | |
| 76 | std::string required_string(const engine::io::json::Value & object, const std::string & key) { |
| 77 | auto value = optional_string(object, key); |
| 78 | if (value.empty()) { |
| 79 | throw std::runtime_error("VibeVoice warmbench request missing required string field: " + key); |
| 80 | } |
| 81 | return value; |
| 82 | } |
| 83 | |
| 84 | std::vector<std::string> required_string_array(const engine::io::json::Value & object, const std::string & key) { |
| 85 | const auto * value = object.find(key); |
no test coverage detected