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

Function test_registry_with_text_worker

core/src/tools/task.rs:1997–2004  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1995 }
1996
1997 fn test_registry_with_text_worker() -> Arc<AgentRegistry> {
1998 let registry = AgentRegistry::new();
1999 let spec = crate::subagent::WorkerAgentSpec::custom("worker", "Text worker")
2000 .with_prompt("Return a concise result.")
2001 .with_max_steps(1);
2002 registry.register(spec.into_agent_definition());
2003 Arc::new(registry)
2004 }
2005
2006 #[tokio::test]
2007 async fn task_child_run_permission_allow() {

Calls 4

with_promptMethod · 0.80
into_agent_definitionMethod · 0.80
with_max_stepsMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected