AS AgentScopeAPI 手册 / API Reference

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
typeString类型(类型 `String`)。The repository type (never null)
locationStringlocation(类型 `String`)。The repository location (never null)
writablebooleanwritable(类型 `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.

返回Returns String
返回字符串结果。The repository type (never null)
源码Source io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:66–68

getLocation

public String getLocation()

获取 getLocation。

Gets the repository location.

返回Returns String
返回字符串结果。The repository location (never null)
源码Source io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:75–77

isWritable

public boolean isWritable()

判断是否 isWritable。

Checks if the repository supports write operations.

返回Returns boolean
返回布尔值,表示判断结果。`true` if writable, `false` otherwise
源码Source io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:84–86

toString

public String toString()

返回 toString 结果。

Returns a string representation of this repository info.

返回Returns String
返回字符串结果。String in format "AgentSkillRepositoryInfo{type='...', location='...', writable=...}"
源码Source io/agentscope/core/skill/repository/AgentSkillRepositoryInfo.java:93–98
基于官方固定版本源码静态生成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.