# LibraryStatus

Canonical URL: https://developers.iagenify.com/pt/sdk/agent/skills-and-subagents/library-status/
Language: pt

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

Status: {} means both were read · "none" is normal · a code is a refusal

```javascript
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
```

## I due tipi di valore {#values}

| 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 {#why}

> **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 {#surfacing}

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

if (problems.length) {
  console.warn("library unavailable:", problems.map(([kind, code]) => `${kind}: ${code}`).join(", "));
}
```

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

## Quando è riempit {#when}

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

- [Habilidades e subagentes](/pt/sdk/agent/skills-and-subagents): De d'où vindeam ambos, e chi vince.
- [Opções · ferramentas e biblioteca](/pt/sdk/ref/agents/options/tools): Elegere lo que una corrida obtiene.

```python
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
```

```python
if not agent.skills and api.agents.skills.list():
    print("library unavailable: skills exist on the account but this agent has none")
```
