مكتبة المهارات

remove()

api.agents.skills.remove(name) → Promise<{ ok: true }>

يزيل مهارة من الحساب ، ولا يوجد الا على قرص ، بل يُرفض طريقه ، لا مهارة .

the account onlyitem_on_computernames the path
Using Python?

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

await api.agents.skills.remove("release-notes");   // { ok: true }
api.agents.skills.remove("release-notes")   # {"ok": True}

A حاسوب مهاة لا يمكن إزالتها من هنا

item_on_computerمع المجلد المسمى

الـ API أما الرفض فيذكر أين هو بحيث يمكن حذفه هناك.

import { IaGenifyError } from "iagenify";

try {
  await api.agents.skills.remove("scratch");
} catch (err) {
  if (err instanceof IaGenifyError && err.code === "item_on_computer") {
    console.log(err.message);   // names ~/.iagenify/skills
  }
}
from iagenify import IaGenifyError

try:
    api.agents.skills.remove("scratch")
except IaGenifyError as error:
    if error.code != "item_on_computer":
        raise
    print(error)   # names ~/.iagenify/skills

Removing the account's copy reveals the disk's

إذا كان كلاهما موجود، فحذف الحساب واحد يعيد الحاسوب إلى القائمة. هذا هو الظل يعمل بالعكس، و يستحق المعرفة قبل أن يُنهي الحذف لم يأخذ.

الأخطاء

الرمزالحالةمتى
item_on_computer409إنها موجودة فقط على هذا الحاسوب
not_found404في لا مصدر