AgentSkillRepositoryInfo
public class AgentSkillRepositoryInfo
源码Source
io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:43–99智能体技能仓库信息,让智能体以受控方式调用外部能力。位于 io.agentscope.core.skill.repository 包。核心成员包括 getType、getLocation、isWritable、toString、AgentSkillRepositoryInfo。
Metadata about a skill repository.
Contains essential information about a skill repository including its type, location, and write capability.
Repository types:
-
filesystem - Local file system storage
-
github - GitHub repository
-
mysql - MySQL database
-
redis - Redis cache
-
Custom implementations
Usage example:
`AgentSkillRepositoryInfo info = new AgentSkillRepositoryInfo(
"filesystem",
"/path/to/skills",
true
);
`
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AgentSkillRepositoryInfo(String type, String location, boolean writable) | 创建新的AgentSkillRepositoryInfo 实例。 Creates a new AgentSkillRepositoryInfo instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getType() | 获取仓库类型。 Gets the repository type. |
public String getLocation() | 获取 `getLocation`。 Gets the repository location. |
public boolean isWritable() | 判断是否 `isWritable`。 Checks if the repository supports write operations. |
public String toString() | 返回 `toString` 结果。 Returns a string representation of this repository info. |
构造器详情Constructor Detail
AgentSkillRepositoryInfo
public AgentSkillRepositoryInfo(String type, String location, boolean writable)
创建新的AgentSkillRepositoryInfo 实例。
Creates a new AgentSkillRepositoryInfo instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The repository type (never null) |
location | String | location(类型 `String`)。The repository location (never null) |
writable | boolean | writable(类型 `boolean`)。Whether the repository supports write operations |
源码Source
io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:55–59方法详情Method Detail
getType
public String getType()
获取仓库类型。
Gets the repository type.
String返回字符串结果。The repository type (never null)
源码Source
io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:66–68getLocation
public String getLocation()
获取 getLocation。
Gets the repository location.
String返回字符串结果。The repository location (never null)
源码Source
io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:75–77isWritable
public boolean isWritable()
判断是否 isWritable。
Checks if the repository supports write operations.
boolean返回布尔值,表示判断结果。`true` if writable, `false` otherwise
源码Source
io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:84–86toString
public String toString()
返回 toString 结果。
Returns a string representation of this repository info.
String返回字符串结果。String in format "AgentSkillRepositoryInfo{type='...', location='...', writable=...}"
源码Source
io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:93–98