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 refusedagent.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.subagentsI due tipi di valore
| Valor | Significado | Di 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 erro | Una 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
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.