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

Function yaml_get_any

core/src/subagent.rs:787–789  ·  view source on GitHub ↗
(value: &'a serde_yaml::Value, keys: &[&str])

Source from the content-addressed store, hash-verified

785}
786
787fn yaml_get_any<'a>(value: &'a serde_yaml::Value, keys: &[&str]) -> Option<&'a serde_yaml::Value> {
788 keys.iter().find_map(|key| yaml_get(value, key))
789}
790
791fn parse_tools_field(value: &serde_yaml::Value) -> Vec<String> {
792 match value {

Callers 2

parse_agent_yaml_valueFunction · 0.85
parse_agent_mdFunction · 0.85

Calls 1

yaml_getFunction · 0.85

Tested by

no test coverage detected