محل & محلي

الخصائص

ما يحمله الجسم، وأيّ منه يعيش خلال الركض.

live while runningid before the first runtoolNames is what was selected
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

idstring|null

دال- وسيلة تحديد الدورة، التي تحدد عند الإنشاء عندما memory على null (ب) أو

modelstring

نموذج الوكيل. في أي نموذج خدم منعطفاً، اقرأ turn أحداث أحداث أحداث أحداث

modestring

الـ نمط نمط هو ساري المفعول مع setMode().

titlestring

من الرسالة الأولى للدورة.

usageobject

{ credits, turns, toolCalls } - إعادة في بداية كل عملية، بما في ذلك العناصر الفرعية.

contextobject

{ tokens, limit, window, cachedTokens, cleared, parts }.

todosarray

الخطة الحالية

toolNamesstring[]

الأدوات التي أعطيها هذا الوكيل، و التي تم إدراجها في العرف

libraryobject

{ skills, subagents } -ما الذي تم تحميله آخر عملية

libraryStatusobject

لماذا المكتبة فارغة، عندما تكون كذلك.

mcpServersarray

الخوادم المرتبطة التي قد يستخدمها هذا التنفيذ.

machine · files · shellobject

ما كان منحها.

ما الذي يتغيّر أثناء الركض

const running = agent.run({ message: "…" });

const timer = setInterval(() => {
  console.log(agent.usage.credits, "credits ·", agent.context.tokens, "tokens");
}, 1000);

await running;
clearInterval(timer);
import threading

done = threading.Event()

def watch():
    while not done.wait(1):
        print(agent.usage["credits"], "credits ·", agent.context["tokens"], "tokens")

threading.Thread(target=watch, daemon=True).start()
agent.run(message="…")
done.set()

usage, context, todos and library are all updated as the loop goes. Events are the better channel — they carry the same numbers at the moment they change — but polling works.

(أ) يجري التنفيذ

هو عند بدء من كل تشغيل

لا يعتبر مجموع التشغيل للجسم العميل. حافظ على مجموعك الخاص على طول المدى إذا كنت بحاجة إلى تكلفة المحادثة كاملة.

مـن

الحقلمحرف
tokensحجم الدور الأخير، كما قام مقدم العرض بقياسه
limitالحد الأقصى النافذ
windowأو أنّ النموذج هو نافذة خاصة به، أو null إذا تعذرت قراءة الفهرس
cachedTokensWhat the provider served from cache
clearedكم عدد نتائج الأدوات التي تم إفراغها
parts{ system, tools, memory, messages }

هذا هو ما كان أنت انت انت انت انت انت انت انت انت، ليس ما هو

A tool that cannot run on this machine — bash with no shell on a phone — is already out of it. skill and task appear only once a library has something in it, so they are not in this list before the first run.