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

Function workflow_has_field

app/workflow/workflow.cpp:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 const engine::io::json::Value & object,
65 const std::string & key,
66 std::string fallback) {
67 const auto * value = object.find(key);
68 return value == nullptr || value->is_null() ? std::move(fallback) : value->as_string();
69}
70
71bool workflow_has_field(const engine::io::json::Value & object, const std::string & key) {
72 const auto * value = object.find(key);

Callers 2

run_batch_inputs_stepFunction · 0.85
run_workflow_stepFunction · 0.85

Calls 2

is_nullMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected