memory.get_social_contexts
Overview
- Returns all social-context memories of the target character (target, memory id, state, mood scores).
Metadata
| Field | Value |
|---|---|
| Display | Get Social Contexts |
| Category | memory |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Target entity ID (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | entityId | yes | Owner entity id |
count | int | yes | Number of social contexts |
social_contexts | array | yes | Social-context memories |
social_contexts[].target_entity_id | entityId | yes | Target entity id |
social_contexts[].memory_dt_id | string | yes | Memory data table id |
social_contexts[].self_state | string | yes | Self social-context state (active/solved/invalid) |
social_contexts[].target_state | string | yes | Target social-context state (active/solved/invalid) |
social_contexts[].self_mood_score | float | yes | Self mood score |
social_contexts[].target_mood_score | float | yes | Target mood score |
social_contexts[].cooltime | int | yes | Cooltime in ticks |
social_contexts[].is_unread | bool | yes | Whether unread |
Usage
await inzoi.cli.execute('memory.get_social_contexts', {
entity_id: 0, // optional
});