MCPcopy Index your code
hub / github.com/AI45Lab/Code / yaml_value_has_key

Function yaml_value_has_key

core/src/subagent.rs:774–779  ·  view source on GitHub ↗
(value: &serde_yaml::Value, key: &str)

Source from the content-addressed store, hash-verified

772}
773
774fn yaml_value_has_key(value: &serde_yaml::Value, key: &str) -> bool {
775 value
776 .as_mapping()
777 .map(|mapping| mapping.contains_key(serde_yaml::Value::String(key.to_string())))
778 .unwrap_or(false)
779}
780
781fn yaml_get<'a>(value: &'a serde_yaml::Value, key: &str) -> Option<&'a serde_yaml::Value> {
782 value

Callers 2

parse_agent_yaml_valueFunction · 0.85
parse_agent_mdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected