MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / required_string_field

Function required_string_field

tests/ace_step/ace_step_warm_bench.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::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
84std::string option_text(const engine::io::json::Value & value) {
85 if (value.is_bool()) {

Callers 1

make_requestFunction · 0.85

Calls 2

is_nullMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected