目前的设计是: private record SubagentFactoryEntry(String name, Function<String, Agent> factory) {} 使用的时候如下: for (SubagentFactoryEntry custom : customSubagentFactories) { entries.add( new SubagentEntry( custom.name(), custom.name(), () -> custom.factory().apply(custom.name()), null)); } 目前使用的是子智能体的名称作为描述,名称很难表达其作用,建议增加描述字段
Activity
feat(harness): add description field to custom subagent factory (#1506)