()
| 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() { |
no test coverage detected