# libraryStatus

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

One field saying why a library is empty: there was no source here, or a source refused and this is its code.

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

## The two kinds of value {#values}

| Value | Means | Usually |
| --- | --- | --- |
| `"none"` | There is no source of this kind here. | A phone or a cloud workspace, which has no disk, and an account with nothing saved. |
| An error code | A source existed and refused. | `storage_not_local`, `storage_not_on_this_machine`, or a network failure reading the account. |

A kind that is absent from the object was read successfully — including when it returned an empty list, which simply means there is nothing saved.

## Why it exists {#why}

> **An empty library and a refused library look identical from outside**
>
> Both give an agent with no skills and no task tool. Without this field the difference is invisible, and « the agent never delegates » reads as a model choice rather than as a library that could not be read.

## Surfacing it {#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(", "));
}
```

Treat `"none"` as information and anything else as a warning — the first is a configuration, the second is a failure.

## When it is filled {#when}

At the start of every run, when both libraries are re-read. Before the first run it is an empty object, which does not yet mean anything.

- [Skills and subagents](/sdk/agent/skills-and-subagents): Where both come from, and who wins.
- [Options · tools and library](/sdk/ref/agents/options/tools): Choosing what a run gets.

```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")
```
