SkillRepositorySupport
public final class SkillRepositorySupport
源码Source
io/agentscope/builder/runtime/config/SkillRepositorySupport.java:28–139构建AgentSkillRepository来自SkillRepositoryConfigEntry。位于 io.agentscope.builder.runtime.config 包。核心成员包括 createAll、create。
Builds an AgentSkillRepository from SkillRepositoryConfigEntry.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static List<AgentSkillRepository> createAll(Path cwd, List<SkillRepositoryConfigEntry> entries)static | 创建所有。 Materialises every non-null entry in `entries` via `#create(Path,
SkillRepositoryConfigEntry)` and returns the resulting list, preserving order. |
public static AgentSkillRepository create(Path cwd, SkillRepositoryConfigEntry entry)static | 创建并返回实例。 Creates and returns an instance. |
方法详情Method Detail
createAll
public static List<AgentSkillRepository> createAll(Path cwd, List<SkillRepositoryConfigEntry> entries)
static
创建所有。
Materialises every non-null entry in entries via #create(Path, SkillRepositoryConfigEntry) and returns the resulting list, preserving order.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
cwd | Path | cwd(类型 `Path`)。The cwd. |
entries | List<SkillRepositoryConfigEntry> | 条目(类型 `List`)。The entries. |
List<AgentSkillRepository>返回列出。Returns list.
源码Source
io/agentscope/builder/runtime/config/SkillRepositorySupport.java:43–54create
public static AgentSkillRepository create(Path cwd, SkillRepositoryConfigEntry entry)
static
创建并返回实例。
Creates and returns an instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
cwd | Path | cwd(类型 `Path`)。bootstrap working directory (used to resolve relative paths) |
entry | SkillRepositoryConfigEntry | 条目(类型 `SkillRepositoryConfigEntry`)。non-null config entry |
AgentSkillRepository返回AgentSkillRepository。repository instance, or `null` if configuration is invalid or optional Git types are not on the classpath
源码Source
io/agentscope/builder/runtime/config/SkillRepositorySupport.java:62–79