技能库

save()

api.agents.skills.save({ name, description, content }) → Promise<Skill>

创建或替换账户上的一项技能。 它从不写到磁盘上, 开发者的文件会保留在磁盘上 。

always the accountsame name replacesreturns the saved item
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await api.agents.skills.save({
  name: "release-notes",
  description: "Write release notes from a range of commits, in our house format.",
  content: "Group changes under Added, Changed, Fixed.\nOne line per change, past tense…",
});
api.agents.skills.save(
    name="release-notes",
    description="Write release notes from a range of commits, in our house format.",
    content="Group changes under Added, Changed, Fixed.\nOne line per change, past tense…",
)
namestring必填

小写字母、数字和破折号,最多64个字符。

descriptionstring必填

一条线 由这个决定特工是否装载过

contentstring必填

指示,最多10万个字符

描述是触发器,不是标签

代理商符合它提出的要求。 “ 释放说明”几乎没有匹配; 上面的句子与需要它的要求相符。 通常没有人会用它的名字来描述它。

永远也碰不到磁盘

磁盘是一个只读的源。开发者自己编辑这些文件,这是格式的点,没有人想要 API 召人来改写他们,

保存磁盘上存在的名称

允许使用,从那时起账户的版本就是应用,无处不在。 这是推广本地技能,让共享技能的预期方法。

替换同名

没有单独的更新。 读读它, 修改它, 保存它回来 。