类 AgentSkillRepositoryInfo
java.lang.Object
io.agentscope.core.skill.repository.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
);
-
构造器概要
构造器构造器说明AgentSkillRepositoryInfo(String type, String location, boolean writable) Creates a new AgentSkillRepositoryInfo instance. -
方法概要
-
构造器详细资料
-
AgentSkillRepositoryInfo
Creates a new AgentSkillRepositoryInfo instance.- 参数:
type- The repository type (never null)location- The repository location (never null)writable- Whether the repository supports write operations
-
-
方法详细资料
-
getType
Gets the repository type.- 返回:
- The repository type (never null)
-
getLocation
Gets the repository location.- 返回:
- The repository location (never null)
-
isWritable
public boolean isWritable()Checks if the repository supports write operations.- 返回:
trueif writable,falseotherwise
-
toString
Returns a string representation of this repository info.
-