Habilidades e subagentes

LibraryStatus

Un campo dicindu il porquè una biblioteca è vuota: non c'era fonte qui, o una fonte rifiutata e questo è il suo codio.

{} means both were read"none" is normala code is a refusal
Using Python?

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

await agent.run({ inputs: "…" });

agent.libraryStatus;
// {}                               both read, whatever they returned
// { subagents: "none" }            no source for subagents on this machine
// { skills: "storage_not_local" }  a source was there and refused
agent.run(inputs="…")

# The Python engine has no library_status: it reads the libraries at creation,
# and an unreadable source simply leaves the list empty.
agent.skills, agent.subagents

I due tipi di valore

ValorSignificadoDi solito
"none"Non c'è una fonte di questo genere.Un telefono o un nube workspace, che non ha disco, e un compte con nada salvat.
Un codigo di erroUna fonte esiste e respitò.storage_not_local, storage_not_on_this_machine, ou un fallo de rete leendo il compte.

Un tipo che è ausente del objeto fu let con success — incluso quando retornò una lista vuota, che significa semplicemente non c'è nulla salvat.

Por que existe

Una biblioteca vuota e una biblioteca respinte sembra idnètica da fora

Entrambi da un agente con nessuna abilità e nessun utensilio di task. Senza questo campo la differenza è invisibili, e «l'agente mai delega» lege come un model choice piuttosto che come una biblioteca che non puèt lere.

Assombrando-lo

const problems = Object.entries(agent.libraryStatus).filter(([, value]) => value !== "none");

if (problems.length) {
  console.warn("library unavailable:", problems.map(([kind, code]) => `${kind}: ${code}`).join(", "));
}
if not agent.skills and api.agents.skills.list():
    print("library unavailable: skills exist on the account but this agent has none")

Trate "none" come informazion e nòmaltro come advertit — il primo è una configurazion, il second è un fallimento.

Quando è riempit

Al principio di ogni run, quando letturan lettura di entrambe leberi. Prima del primo run è un oggetto vazio, che non significa ancora nulla.