memory.has_memory
Overview
- Checks whether the target character has a memory. If target_entity_id is given, checks the latest memory with that target.
Metadata
| Field | Value |
|---|---|
| Display | Has Memory |
| Category | memory |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Owner entity ID (default: possessed) |
| memory_dt_id | name | yes | — | Memory data table ID to check |
| target_entity_id | entityId | no | — | Optional: restrict to memory with this target |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | entityId | yes | Owner entity id |
memory_dt_id | string | yes | Memory data table id checked |
has_memory | bool | yes | Whether the memory exists |
Usage
await inzoi.cli.execute('memory.has_memory', {
entity_id: 0, // optional
memory_dt_id: '',
target_entity_id: 0, // optional
});