Skills und Unteragenten

BibliothekStatus

Ein Feld, das sagt, warum eine Bibliothek leer ist: es gab hier keine Quelle, oder eine Quelle verweigert, und das ist ihr 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

Die beiden Arten von Wert

WertBedeutungNormalerweise
"none"Es gibt keine solche Quelle.Ein Telefon oder ein Cloud-Workspace, der keine Festplatte hat, und ein Konto mit nichts gespeichert.
FehlercodeEine Quelle existierte und weigerte sich.storage_not_local, storage_not_on_this_machine oder ein Netzwerkfehler beim Lesen des Kontos.

Eine Art, die vom Objekt abwesend ist, wurde erfolgreich gelesen – auch wenn es eine leere Liste zurückgab, was einfach bedeutet, dass nichts gespeichert ist.

Zweck

Eine leere Bibliothek und eine abgelehnte Bibliothek sehen von außen identisch aus

Beide geben einem Agenten ohne Fähigkeiten und ohne Aufgabenwerkzeug. Ohne dieses Feld ist der Unterschied unsichtbar, und «der Agent nie Delegierte » liest sich als Modellwahl, anstatt als Bibliothek, die nicht gelesen werden konnte.

Überdeckt es

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

Behandeln "none" als Information und alles andere als Warnung — die erste ist eine Konfiguration, die zweite ist ein Scheitern.

Wenn es gefüllt ist

Zu Beginn jedes Laufs, wenn beide Bibliotheken erneut gelesen werden, ist es vor dem ersten Lauf ein leeres Objekt, das noch nichts bedeutet.