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

Function test_agent_definition_builder

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

Source from the content-addressed store, hash-verified

1103
1104 #[test]
1105 fn test_agent_definition_builder() {
1106 let agent = AgentDefinition::new("test", "Test agent")
1107 .native()
1108 .hidden()
1109 .with_max_steps(10);
1110
1111 assert_eq!(agent.name, "test");
1112 assert_eq!(agent.description, "Test agent");
1113 assert!(agent.native);
1114 assert!(agent.hidden);
1115 assert_eq!(agent.max_steps, Some(10));
1116 }
1117
1118 #[test]
1119 fn test_agent_registry_new() {

Callers

nothing calls this directly

Calls 3

hiddenMethod · 0.80
nativeMethod · 0.80
with_max_stepsMethod · 0.45

Tested by

no test coverage detected