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

Function json_optional_float

app/cli/request.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 std::size(kArtifactKinds) == static_cast<size_t>(engine::runtime::ArtifactKind::Custom) + 1 &&
80 artifact_kinds_in_enum_order(),
81 "kArtifactKinds must name every ArtifactKind, in enum order");
82
83bool is_artifact_field(const std::string & key) {
84 for (const char * field : {"id", "kind", "payload", "path", "meta"}) {
85 if (key == field) {
86 return true;
87 }
88 }
89 return false;
90}
91
92engine::runtime::ArtifactKind parse_artifact_kind(const std::string & name, const std::string & where) {

Callers 1

build_request_from_jsonFunction · 0.85

Calls 3

is_nullMethod · 0.80
as_f32Method · 0.80
findMethod · 0.45

Tested by

no test coverage detected