SubagentEntry
public record SubagentEntry( String name, String description, SubagentFactory factory, SubagentDeclaration declaration)
源码Source
io/agentscope/harness/agent/middleware/SubagentEntry.java:26–31承载子智能体条目数据的记录类型。位于 io.agentscope.harness.agent.middleware 包。核心成员包括 name、description、factory、declaration、SubagentEntry。
Descriptor for a subagent identified by agent id, with its description,
SubagentFactory, and optional SubagentDeclaration (for
remote URL and headers).
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
name | String | 执行名称相关操作。 Performs the name operation. |
description | String | 执行 `description` 方法。 Performs the description operation. |
factory | SubagentFactory | 执行工厂相关操作。 Performs the factory operation. |
declaration | SubagentDeclaration | 执行 `declaration` 方法。 Performs the declaration operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public SubagentEntry(String name, String description, SubagentFactory factory) | 初始化 `SubagentEntry` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
name
String name执行名称相关操作。
Performs the name operation.
源码Source
io/agentscope/harness/agent/middleware/SubagentEntry.java:26–31description
String description执行 description 方法。
Performs the description operation.
源码Source
io/agentscope/harness/agent/middleware/SubagentEntry.java:26–31factory
SubagentFactory factory执行工厂相关操作。
Performs the factory operation.
源码Source
io/agentscope/harness/agent/middleware/SubagentEntry.java:26–31declaration
SubagentDeclaration declaration执行 declaration 方法。
Performs the declaration operation.
源码Source
io/agentscope/harness/agent/middleware/SubagentEntry.java:26–31构造器详情Constructor Detail
SubagentEntry
public SubagentEntry(String name, String description, SubagentFactory factory)
初始化 SubagentEntry 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
description | String | 描述(类型 `String`)。The description. |
factory | SubagentFactory | 工厂(类型 `SubagentFactory`)。The factory. |
源码Source
io/agentscope/harness/agent/middleware/SubagentEntry.java:28–30