const skills = await api.agents.skills.list();
for (const skill of skills) {
console.log(skill.name, "—", skill.description, `(${skill.source})`);
}skills = api.agents.skills.list()
for skill in skills:
print(skill["name"], "—", skill["description"], f"({skill['source']})")namestringأحرف و أرقام و إنتقالات
descriptionstringخط واحد، ما يطابق العميل طلب مقابله
sourcestring"account" أو "computer".
builtInbooleanدائما دائما دائما دائما دائما دائما دائما دائما دائما دائما false - ليس هناك مهارات داخلية.
الجسد ليس فيه
(أ) تحمل القائمة أسماء ووصافات. (أ) بالنسبة للمحتوى - وهو نفس التقسيم الذي يستخدمه النظام، لنفس السبب.
الـ
كلا المصدرين يقرأان بالتوازي. اسم الحساب يخفي حاسوب واحد، وباقي عناصر القرص تتبع. قرص لا يمكن قراءته يساهم بقائمة فارغة بدلا من خطأ.
عرض
const [mine, shared] = [
skills.filter((s) => s.source === "computer"),
skills.filter((s) => s.source === "account"),
];
// A computer item is read-only here: it is a file, changed on that machine.mine = [s for s in skills if s["source"] == "computer"]
shared = [s for s in skills if s["source"] == "account"]
# A computer item is read-only here: it is a file, changed on that machine.