# :

Canonical URL: https://developers.iagenify.com/ar/sdk/workflows/steps/memory/
Language: ar

`type: "memory"`

يقرأ أو يكتب أو يحذف إحدى ملاحظات الحساب الطويلة الأجل - حتى تستطيع السلسلة تذكر شيء ما بين الجري.

Status: free · 3 actions · read by default

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `action` | string | read | `read` · `write` · `delete`. |
| `name` | string |  | Required for `write` and `delete`. |
| `content` | string |  | برنامج `write`. |
| `description` | string |  | سطر واحد، مبين في المؤشر. |

```javascript
// Remember where the last run got to
{ id: "mark", type: "memory", config: {
    action: "write", name: "last-digest",
    description: "The date of the last digest sent",
    content: "{{input.week}}" } }

// Read it at the start of the next run
{ id: "since", type: "memory", config: { action: "read", name: "last-digest" } }
```

## المخرجات {#output}

| العمل | الناتج |
| --- | --- |
| `read` مع اسم | مذكرة من الأمين |
| `read` بدون واحد | `memories` - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| `write` | والمذكرة وما إذا كانت قد أنشئت |
| `delete` | الاسم، وما إذا كان قد حذف |

## هكذا تحافظ سلسلة على الولاية {#state}

> **"يبدأ تشغيله بلا شيء"**
>
> كل واحد منها مستقل، سلسلة مبرمجة لا يجب أن تكرر نفسها - أي هضم منذ آخر هضم - تكتب ملاحظة في النهاية وتقرأها في البداية، ولا توجد دولة أخرى بين الركضين.

## الملاحظات هي حسابات الحساب {#shared}

نفس واحد واحد واحد واحد واحد واحد واحد واحد من العوامل يقرأ ويكتب ويكتب، و نفس الواحد [api.memory](/ar/sdk/ref/memory) ويغير سير العمل الذي يكتب واحدا ما يعرفه كل وكيل من وكلاء ذلك الحساب - وهو أمر مفيد يستحق أن يجري التداول بشأنه.

- [:](/ar/sdk/agent/tools/memory): نسخة الوكيل.
- [api.memory](/ar/sdk/ref/memory): من الشيفرة.
- [خطوات سير العمل](/ar/sdk/workflows/steps): الأنواع الثلاثة والعشرون.

```python
# Remember where the last run got to
{"id": "mark", "type": "memory", "config": {
    "action": "write", "name": "last-digest",
    "description": "The date of the last digest sent",
    "content": "{{input.week}}"}}

# Read it at the start of the next run
{"id": "since", "type": "memory", "config": {"action": "read", "name": "last-digest"}}
```
