MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_parse_agent_yaml

Function test_parse_agent_yaml

core/src/subagent.rs:1200–1212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1198
1199 #[test]
1200 fn test_parse_agent_yaml() {
1201 let yaml = r#"
1202name: test-agent
1203description: A test agent
1204hidden: false
1205max_steps: 20
1206"#;
1207 let agent = parse_agent_yaml(yaml).unwrap();
1208 assert_eq!(agent.name, "test-agent");
1209 assert_eq!(agent.description, "A test agent");
1210 assert!(!agent.hidden);
1211 assert_eq!(agent.max_steps, Some(20));
1212 }
1213
1214 #[test]
1215 fn test_parse_agent_yaml_with_permissions() {

Callers

nothing calls this directly

Calls 1

parse_agent_yamlFunction · 0.85

Tested by

no test coverage detected