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

Function parse_worker_yaml_value

core/src/subagent.rs:764–772  ·  view source on GitHub ↗
(
    value: serde_yaml::Value,
    context: &str,
)

Source from the content-addressed store, hash-verified

762}
763
764fn parse_worker_yaml_value(
765 value: serde_yaml::Value,
766 context: &str,
767) -> anyhow::Result<WorkerAgentSpec> {
768 let spec: WorkerAgentSpec = serde_yaml::from_value(value)
769 .map_err(|e| anyhow::anyhow!("Failed to parse worker {}: {}", context, e))?;
770 validate_agent_name(&spec.name)?;
771 Ok(spec)
772}
773
774fn yaml_value_has_key(value: &serde_yaml::Value, key: &str) -> bool {
775 value

Callers 1

parse_agent_mdFunction · 0.85

Calls 1

validate_agent_nameFunction · 0.85

Tested by

no test coverage detected