| 74 | } |
| 75 | |
| 76 | std::string required_string_field(const engine::io::json::Value & object, const std::string & key) { |
| 77 | const auto * value = object.find(key); |
| 78 | if (value == nullptr || value->is_null()) { |
| 79 | throw std::runtime_error("ACE-Step warmbench request missing required string field: " + key); |
| 80 | } |
| 81 | return value->as_string(); |
| 82 | } |
| 83 | |
| 84 | std::string option_text(const engine::io::json::Value & value) { |
| 85 | if (value.is_bool()) { |
no test coverage detected