Biblioteca de habilidades

remove()

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

Retira una abilità del conto. Un che esiste solo su un disco è negat—con il suo percorso, invece di un holrug.

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}

Una aptitudès de computer non sò sòlvere da qui

item_on_computer, con il cartello nominato

Il API non ha modo di toccare quel file, e di rispondere « removed» mentre continuava a funzionnîn era peggior di negar. Il rege dice dove è così che può essere eliminat.

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

Retirar la copia del cont revela il disco

Se entrambi existiu, cancellando il conto del trae il computer's de volta a la lista. Quei è la sombra che opera in inversa, e vale la pena sapere prima di concludere una cancellazione non ha preso.

Erros

CódigoStatusQuando
item_on_computer409Existe solo su este computer.
not_found404In né una fonte.