Skip to main content

memory.get_social_contexts

Overview

  • Returns all social-context memories of the target character (target, memory id, state, mood scores).

Metadata

FieldValue
DisplayGet Social Contexts
Categorymemory
AccessPublic
ScopeB2Authority
Tags
Aliases

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdnoTarget entity ID (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
entity_identityIdyesOwner entity id
countintyesNumber of social contexts
social_contextsarrayyesSocial-context memories
social_contexts[].target_entity_identityIdyesTarget entity id
social_contexts[].memory_dt_idstringyesMemory data table id
social_contexts[].self_statestringyesSelf social-context state (active/solved/invalid)
social_contexts[].target_statestringyesTarget social-context state (active/solved/invalid)
social_contexts[].self_mood_scorefloatyesSelf mood score
social_contexts[].target_mood_scorefloatyesTarget mood score
social_contexts[].cooltimeintyesCooltime in ticks
social_contexts[].is_unreadboolyesWhether unread

Usage

await inzoi.cli.execute('memory.get_social_contexts', {
entity_id: 0, // optional
});