Skip to content

API Reference parrot.integrations.liveavatar.tenant_config

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.liveavatar.tenant_config

View source

Per-tenant FULL mode configuration resolver (FEAT-248 — Module 3).

Provides resolve_fullmode_config(tenant_id) -> FullModeConfig, the single public interface for resolving a fully-populated :class:FullModeConfig for a given tenant.

Resolution order (first match wins):

  1. (Future) Per-tenant DB overrides via a tenant config store — gated by Q-tenant-config-store (see §8 Open Questions in the spec).
  2. Environment variables (LIVEAVATAR_*).
  3. :class:FullModeConfig field defaults.

Interim implementation (env-only)

The DB override layer is deferred until Q-tenant-config-store is resolved (choice of program-DB column, NavConfig key, or feature-flag service). All callers interact with the same resolve_fullmode_config interface — only the backing resolution changes when the DB layer is added.

Environment variables

LIVEAVATAR_API_KEY (required) LiveAvatar API key.

LIVEAVATAR_AVATAR_ID (required) Default avatar ID.

LIVEAVATAR_VOICE_ID (optional) Default voice ID (None → avatar default).

LIVEAVATAR_LANGUAGE (optional, default "en") Default BCP-47 language tag.

LIVEAVATAR_INTERACTIVITY_TYPE (optional, default "CONVERSATIONAL") Default interactivity type ("CONVERSATIONAL" or "PUSH_TO_TALK").

LIVEAVATAR_BASE_URL (optional, default https://api.liveavatar.com) LiveAvatar API base URL.

LIVEAVATAR_SANDBOX (optional, default "true") Sandbox mode flag. Set to "false" for production.

LIVEAVATAR_MAX_SESSION_DURATION (optional) Safety-net maximum session duration in seconds.

Alias FullModeConfig

Re-exported from parrot.integrations.liveavatar.models.FullModeConfig.

Function resolve_fullmode_config

Resolve a :class:FullModeConfig from env defaults (+ future DB overrides).

Declared async so call sites do not need breaking changes when a real DB await is added to the DB-override layer (TODO Q-tenant-config-store).

Resolution order:

  1. (Future) Per-tenant DB overrides via a tenant config store — TODO Q-tenant-config-store: overlay per-tenant DB values here once the storage layer (program DB column / NavConfig / feature-flag service) is agreed.
  2. Environment variables (LIVEAVATAR_*).
  3. :class:FullModeConfig field defaults.

resolve_fullmode_config(tenant_id: Optional[str] = None) -> FullModeConfig

Parameter Type Default Description
tenant_id Optional[str] None Optional tenant identifier. When provided, it will be used to look up per-tenant DB overrides in the future (see TODO above). Ignored by the current env-only implementation.

Returns: FullModeConfig — A fully-populated :class:FullModeConfig ready for session creation.

Raises:

  • RuntimeError — If LIVEAVATAR_API_KEY or LIVEAVATAR_AVATAR_ID env vars are missing.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally