Skip to content

Character and LocalAgent Fields and Mapping Specifications ​

In Nimi's architecture, persistent character templates (Character) and active local runtime instances (LocalAgent) are cleanly decoupled, each belonging to dedicated authority domains.

Core Concepts and Field Mappings ​

Field / ConceptAuthority DomainScope & Purpose
Character ReferenceRealmGlobally unique identifier and canonical definition of a character
PersonaCharacter / WorldCharacterRealmCharacter archetype: autonomous companion vs. in-world narrative NPC
Character SourceRealmStructured package containing lore and personas used for local instantiation
World SourceRealmContextual world setting and environmental parameters
LocalAgent IDRuntimeUnique identifier of the local operational instance
ConversationAnchorRuntimePersistent handle binding the agent's single, continuous conversation
Long-Term MemoryCognitionPrivate memory bank mediated securely by Runtime
Capability IntentRuntimeDeclared model inference requirements, quotas, and execution routes
Presentation ConfigurationRuntimeDurable appearance settings, voice bindings, and baseline demeanor
Ephemeral Interaction StateRuntimePer-turn real-time interaction phase (listening, thinking, speaking)
Renderer StateAvatar AppLive2D / 3D VRM graphics pipeline state, vertex shaders, and joint transforms

Access Conventions and Scopes ​

Applications interact with agents using secure session scopes:

  • Session-Scoped Handles (agentHandle): Applications interact with agents via temporary handles issued by the supervised host, rather than hardcoding static internal IDs.
  • Least-Privilege Exposure: Provider API keys, user private keys, and low-level sandbox transports remain shielded inside Runtime and are never exposed to frontend renderers.

Dialogue Continuity ​

Each LocalAgent maintains a single conversation thread bound to its ConversationAnchor. Whether invoked from the main window, a quick drawer, or an application widget, interactions seamlessly append to this unified context, preserving behavioral continuity.

Source Basis ​

Documentation for Nimi — the installable, open-source, local-first personal AI product.