Skills and subagents

libraryStatus

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

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

The two kinds of value

ValueMeansUsually
"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 codeA 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

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

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.