Cached persona configuration data.
Unique identifier for this persona instance.
Unique identifier for this persona instance (alias for id).
High-level chat: getState → LLM generate → perceive with appraisal. Requires LLMAdapter. Without LLM, use perceive() directly for emotion-only interaction.
Optionaloptions: { from?: string; history?: ChatMessage[] }Soft-delete this persona. Can be restored with restore.
Get a full snapshot of the persona's internal state.
Complete persona snapshot for backup/restore.
Get the current emotional and psychological state of the persona.
Current emotion, mood, somatic, and narrative state.
Patch the persona's configuration (identity, personality, goals).
Configuration updates to apply.
Send a message to the persona and get an emotion-processed response. If appraisal is provided, it is sent directly to the API. Otherwise, the message is sent as a stimulus.
Optionaloptions: { appraisal?: AppraisalVector; from?: string }Restore the persona's internal state from a snapshot.
The snapshot to restore.
Restore a previously soft-deleted persona.
Directly set the persona's emotion state in VAD space.
Partial VAD values to set (V: -1..1, A: 0..1, D: -1..1).
Advance persona time by the specified number of seconds.
Number of seconds to advance.
Any pending events that were processed.
StaticconnectConnect to an existing persona by ID.
Verifies the persona exists and fetches its configuration.
API connection config and optional LLM adapter.
The ID of the persona to connect to.
A connected MolrooPersona instance.
StaticcreateCreate a new persona on the molroo API and return a connected instance.
API connection config and optional LLM adapter.
Persona identity, personality, and goals.
A connected MolrooPersona instance.
StaticlistList all personas for the authenticated tenant.
API connection config (baseUrl + apiKey).
List of persona summaries with optional pagination cursor.
SDK client for interacting with a standalone molroo persona instance.
Unlike MolrooWorld, which manages multiple entities in a spatial world, MolrooPersona is a single-entity client for direct persona interactions.
Example