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.subagentsThe two kinds of value
| 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
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
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")Treat "none" as information and anything else as a warning — the first is a configuration, the second is a failure.
When it is filled
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.