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

Function required_string

tests/vibevoice/vibevoice_warm_bench.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::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
84std::vector<std::string> required_string_array(const engine::io::json::Value & object, const std::string & key) {
85 const auto * value = object.find(key);

Callers 2

make_requestFunction · 0.70
make_task_requestFunction · 0.70

Calls 2

optional_stringFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected