AS AgentScopeAPI 手册 / API Reference

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
cwdPathcwd(类型 `Path`)。The cwd.
entriesList<SkillRepositoryConfigEntry>条目(类型 `List`)。The entries.
返回Returns List<AgentSkillRepository>
返回列出。Returns list.
源码Source io/agentscope/builder/runtime/config/SkillRepositorySupport.java:43–54

create

public static AgentSkillRepository create(Path cwd, SkillRepositoryConfigEntry entry)
static

创建并返回实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
cwdPathcwd(类型 `Path`)。bootstrap working directory (used to resolve relative paths)
entrySkillRepositoryConfigEntry条目(类型 `SkillRepositoryConfigEntry`)。non-null config entry
返回Returns 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
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.