AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

SkillRecord

class SkillRecord(_RecordBase)
源码Source agentscope/app/storage/_model/_skill.py:8–65

技能记录,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包,继承自 _RecordBase。

Unlike an MCP, whose whole substance is a config small enough to store inline, a skill is a directory of files. Those files are not kept here: the record holds where the skill came from and what it says it does, and the archive is re-fetched from the hub when the skill is actually put into a workspace.

TODO: store the archive so the library survives the hub dropping the card or going offline. That needs a blob store, and the one this app has is only wired up alongside knowledge_base_manager.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
user_idstr
用户标识字段。
—
namestr
名称字段。
—
display_namestr | None
展示名称字段。
Field(default=None)
descriptionstr
`description` 字段。
Field(default='')
tagslist[str]
标签字段。
Field(default_factory=list)
authorstr | None
`author` 字段。
Field(default=None)
icon_urlstr | None
`icon_url` 字段。
Field(default=None)
urlstr | None
URL字段。
Field(default=None)
markdownstr
`markdown` 字段。
Field(default='')
hub_idstr | None
中心标识字段。
Field(default=None)
card_idstr | None
卡片标识字段。
Field(default=None)
versionstr | None
版本字段。
Field(default=None)
enabledbool
已启用字段。
Field(default=True)

属性详情Attribute Detail

user_id

str

用户标识字段。声明为 str。

The user id field.

源码Source agentscope/app/storage/_model/_skill.py:23

name

str

名称字段。声明为 str。

The name field.

源码Source agentscope/app/storage/_model/_skill.py:25

display_name

str | None = Field(default=None)

展示名称字段。声明为 str | None。

The display name field.

源码Source agentscope/app/storage/_model/_skill.py:29

description

str = Field(default='')

description 字段。声明为 str。

The description field.

源码Source agentscope/app/storage/_model/_skill.py:32

tags

list[str] = Field(default_factory=list)

标签字段。声明为 list[str]。

The tags field.

源码Source agentscope/app/storage/_model/_skill.py:35

author

str | None = Field(default=None)

author 字段。声明为 str | None。

The author field.

源码Source agentscope/app/storage/_model/_skill.py:38

icon_url

str | None = Field(default=None)

icon_url 字段。声明为 str | None。

The icon url field.

源码Source agentscope/app/storage/_model/_skill.py:41

url

str | None = Field(default=None)

URL字段。声明为 str | None。

The url field.

源码Source agentscope/app/storage/_model/_skill.py:46

markdown

str = Field(default='')

markdown 字段。声明为 str。

The markdown field.

源码Source agentscope/app/storage/_model/_skill.py:50

hub_id

str | None = Field(default=None)

中心标识字段。声明为 str | None。

The hub id field.

源码Source agentscope/app/storage/_model/_skill.py:54

card_id

str | None = Field(default=None)

卡片标识字段。声明为 str | None。

The card id field.

源码Source agentscope/app/storage/_model/_skill.py:57

version

str | None = Field(default=None)

版本字段。声明为 str | None。

The version field.

源码Source agentscope/app/storage/_model/_skill.py:61

enabled

bool = Field(default=True)

已启用字段。声明为 bool。

The enabled field.

源码Source agentscope/app/storage/_model/_skill.py:64
基于官方固定版本源码静态生成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.