# الخصائص

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/local-agent/properties/
Language: ar

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

Status: live while running · id before the first run · toolNames is what was selected

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `id` | string|null |  | دال- وسيلة تحديد الدورة، التي تحدد عند الإنشاء عندما `memory` على `null` (ب) أو |
| `model` | string |  | نموذج الوكيل. في أي نموذج خدم منعطفاً، اقرأ `turn` أحداث أحداث أحداث أحداث |
| `mode` | string |  | الـ نمط نمط هو ساري المفعول مع `setMode()`. |
| `title` | string |  | من الرسالة الأولى للدورة. |
| `usage` | object |  | `{ credits, turns, toolCalls }` - إعادة في بداية كل عملية، بما في ذلك العناصر الفرعية. |
| `context` | object |  | `{ tokens, limit, window, cachedTokens, cleared, parts }`. |
| `todos` | array |  | الخطة الحالية |
| `toolNames` | string[] |  | الأدوات التي أعطيها هذا الوكيل، و التي تم إدراجها في العرف |
| `library` | object |  | `{ skills, subagents }` -ما الذي تم تحميله آخر عملية |
| `libraryStatus` | object |  | لماذا المكتبة فارغة، عندما تكون كذلك. |
| `mcpServers` | array |  | الخوادم المرتبطة التي قد يستخدمها هذا التنفيذ. |
| `machine · files · shell` | object |  | ما كان منحها. |

## ما الذي يتغيّر أثناء الركض {#live}

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

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

await running;
clearInterval(timer);
```

`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.

## (أ) يجري التنفيذ {#usage-resets}

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

## مـن {#context-shape}

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

## هذا هو ما كان أنت انت انت انت انت انت انت انت انت، ليس ما هو {#toolnames}

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.

- [الأحداث](/ar/sdk/agent/events): نفس الأرقام، مدفوعة
- [السياق](/ar/sdk/agent/context): ما تعنيه الأجزاء
- [محل & محلي](/ar/sdk/ref/local-agent): كل ممتلكات و طرق

```python
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()
```
