类 AgentSkillRepositoryInfo

java.lang.Object
io.agentscope.core.skill.repository.AgentSkillRepositoryInfo

public class AgentSkillRepositoryInfo extends Object
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

      public AgentSkillRepositoryInfo(String type, String location, boolean writable)
      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

      public String getType()
      Gets the repository type.
      返回:
      The repository type (never null)
    • getLocation

      public String getLocation()
      Gets the repository location.
      返回:
      The repository location (never null)
    • isWritable

      public boolean isWritable()
      Checks if the repository supports write operations.
      返回:
      true if writable, false otherwise
    • toString

      public String toString()
      Returns a string representation of this repository info.
      覆盖:
      toString 在类中 Object
      返回:
      String in format "AgentSkillRepositoryInfo{type='...', location='...', writable=...}"