AS AgentScopeAPI 手册 / API Reference

SkillRepositoryConfigEntry

@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class SkillRepositoryConfigEntry
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:29–120

技能仓库配置条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding.config 包。核心成员包括 getType、setType、getPath、setPath、getRemoteUrl、setRemoteUrl。

Declarative skill repository settings for agentscope.json (and similar) configs.

Use type: "filesystem" with #path or type: "git" with #remoteUrl. Git support requires io.agentscope:agentscope-extensions-skill-git-repository on the classpath.

方法摘要Method Summary

方法Method说明Description
public String getType()
获取类型。
Returns the type.
public void setType(String type)
设置类型。
Sets the type.
public String getPath()
获取路径。
Returns the path.
public void setPath(String path)
设置路径。
Sets the path.
public String getRemoteUrl()
获取远程 URL。
Returns the remote url.
public void setRemoteUrl(String remoteUrl)
设置远程 URL。
Sets the remote url.
public String getBranch()
获取 `getBranch`。
Returns the branch.
public void setBranch(String branch)
设置 `setBranch`。
Sets the branch.
public String getLocalPath()
获取本地路径。
Returns the local path.
public void setLocalPath(String localPath)
设置本地路径。
Sets the local path.
public String getSource()
获取来源。
Returns the source.
public void setSource(String source)
设置来源。
Sets the source.
public Boolean getAutoSync()
获取 `getAutoSync`。
Returns the auto sync.
public void setAutoSync(Boolean autoSync)
设置 `setAutoSync`。
Sets the auto sync.

方法详情Method Detail

getType

public String getType()

获取类型。

Returns the type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:65–67

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:69–71

getPath

public String getPath()

获取路径。

Returns the path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:73–75

setPath

public void setPath(String path)

设置路径。

Sets the path.

参数Parameters
名称Name类型Type说明Description
pathString路径(类型 `String`)。The path.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:77–79

getRemoteUrl

public String getRemoteUrl()

获取远程 URL。

Returns the remote url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:81–83

setRemoteUrl

public void setRemoteUrl(String remoteUrl)

设置远程 URL。

Sets the remote url.

参数Parameters
名称Name类型Type说明Description
remoteUrlString远程 URL(类型 `String`)。The remote url.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:85–87

getBranch

public String getBranch()

获取 getBranch。

Returns the branch.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:89–91

setBranch

public void setBranch(String branch)

设置 setBranch。

Sets the branch.

参数Parameters
名称Name类型Type说明Description
branchStringbranch(类型 `String`)。The branch.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:93–95

getLocalPath

public String getLocalPath()

获取本地路径。

Returns the local path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:97–99

setLocalPath

public void setLocalPath(String localPath)

设置本地路径。

Sets the local path.

参数Parameters
名称Name类型Type说明Description
localPathString本地路径(类型 `String`)。The local path.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:101–103

getSource

public String getSource()

获取来源。

Returns the source.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:105–107

setSource

public void setSource(String source)

设置来源。

Sets the source.

参数Parameters
名称Name类型Type说明Description
sourceString来源(类型 `String`)。The source.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:109–111

getAutoSync

public Boolean getAutoSync()

获取 getAutoSync。

Returns the auto sync.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:113–115

setAutoSync

public void setAutoSync(Boolean autoSync)

设置 setAutoSync。

Sets the auto sync.

参数Parameters
名称Name类型Type说明Description
autoSyncBooleanauto 同步(类型 `Boolean`)。The auto sync.
源码Source io/agentscope/harness/coding/config/SkillRepositoryConfigEntry.java:117–119
基于官方固定版本源码静态生成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.