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.subagentsنوعان من القيمة
| القيمة | المعنى | عادة |
|---|---|---|
"none" | لا يوجد مصدر لهذا النوع هنا | هاتف أو سحابة مساحة عمل، التي ليس لها قرص، وحساب مع لا شيء محفوظ. |
| هذا | مصدر موجود و مرفوض | storage_not_local, storage_not_on_this_machineأو فشل شبكة قراءة الحساب |
وقد تم قراءة نوع غائب عن الجسم بنجاح ، بما في ذلك عندما أعاد قائمة فارغة ، مما يعني ببساطة انه لم يتم انقاذ شيء .
سبب وجوده
مكتبة فارغة ومكتبة مرفوضة تبدوان متشابهتين من الخارج
فبدون هذا المجال، يكون الفرق غير مرئي، "وإن الوكيل لا يقوم أبداً بالتفويض" يقرأ كخيار نموذجي وليس كمكتبة لا يمكن قراءتها.
المُمَاَسَه
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")at "none" أولاً هو تشكيل، والثاني هو فشل.
When it is filled
في بداية كل عملية، عندما يتم إعادة قراءة المكتبتين. قبل أول عملية، يكون كائن فارغ، والذي لا يعني أي شيء بعد.