AlphaAvatarDocs

Docs version

Docs version

On this page

v0.7.0English
  1. 📦 Package structure
  2. Native execution
  3. Ownership
  4. Configuration
  5. Boundaries
v0.7.0

Reference / Architecture and modules

v0.7.0 · source 21190a84 · English

AlphaAvatar Agents

alpha-avatar-agents defines Agent execution contracts and runtime composition. Concrete model backends and feature implementations live in plugin packages; application hosting and transport assembly belong to Host and RTC.

📦 Package structure

Plain text
alphaavatar/agents/
├── avatar/               # Engine, Loop, Context, Provider, Voice and Vision contracts.
├── runtime/              # Runtime composition, capability registry and inference.
├── configs/              # Strict Avatar and plugin-selection configuration.
├── character/            # Presentation and transport contracts.
├── memory/               # Memory interfaces and public schemas.
├── persona/              # Persona interfaces and public schemas.
├── router/               # Interaction processor contracts.
├── status/               # Status contracts.
├── tools/                # Tool abstractions and operation contracts.
├── reflection/           # Reserved, empty package; no Reflection contracts yet.
├── workspace/            # Workspace, user and session paths and their preparation.
├── utils/                # Identity, time and shared utilities.
├── log.py                # Agent logging configuration.
└── version.py            # Package version.

Selected files and feature directories are shown; ordinary package initializers are omitted.

Native execution

Plain text
Router turn decision / direct input
    -> AvatarEngine
    -> Foundation Loop
    -> ContextManager + ProviderService + AvatarCapabilityRegistry
    -> OutputRuntime

AvatarEngine owns bounded Turn admission, duplicate/stale-input isolation, submission and precise interruption. It does not inherit a LiveKit Agent, construct model prompts, register SDK tools or write directly to Memory.

Loop owns model/tool execution and canonical record publication. ContextManager owns canonical session history, request-local projection and query preparation. Provider owns model clients and tracing. State and static loop budgets are captured once per query, not rewritten between model steps. Generation completion remains distinct from playback completion and interruption.

Ownership

Provider schemas, enums and abstractions are in alphaavatar.agents.avatar.provider. Plugin implementations must not introduce SDK types into Core or public output data. Runtime components use Core LifecycleComponent and LifecycleGroup where appropriate. AvatarRuntime composes Session, State, Core runtimes, Foundation, capabilities and its inference client; it is not the plugin lifecycle manager.

Engine starts its consumers before Router enables decisions. It stops admission and settles Loop execution while its canonical record consumers still exist. Plugin finalization remains in each plugin. Host owns the surrounding execution lifecycle; transport detachment releases RTC subscriptions independently of Engine destruction.

InferenceRuntime owns the shared socket and serial runner processes. InferenceExecutor owns only client connections. Host supervises the service but does not create a second owner for runner processes. Neither failed jobs nor state-changing requests are replayed automatically by the Host.

Configuration

Agent configuration selects plugins and processor-owned init_config settings. The main model is loop.init_config.model; there is no SDK llm section. Enabled plugins grant their capabilities to each Run; an exact tool_policies entry can deny one (enabled: false) or require an authorizer (approval_required: true). The native provider extras are selected on alpha-avatar-plugins-provider, not on an Agents SDK providers extra.

Host loads the shared application file and removes host before strictly validating AvatarConfig. Execution children restore a validated snapshot, retaining the original Avatar identity and resolved workspace rather than appending the Avatar ID again. The alphaavatar command and its argument parser belong exclusively to Host.

Boundaries

Native TTS and Character use AlphaAvatar contracts, not AgentSession. Host supplies Character's scoped RTC transport, and the Character plugin owns browser presentation. Real renderer, RTC and provider integration still require end-to-end validation.

Session-scoped Perception/Output consistency checks remain unchanged. Persistent Episodes, cross-attachment recovery, sleep/wake and Dream scheduling are separate work.


Content maintained in AlphaAvatar/AlphaAvatar · source version shown above.


Documentation

v0.7.0English

Up / Down to navigate · Enter to open · Esc to close