Skip to main content

memoair-livekit

LiveKit Agent integration for MemoAir voice memory. Drop-in livekit.agents.Agent subclass that searches memory before every LLM turn and persists each completed turn.

Install

pip install memoair-livekit

Quick start

import asyncio
from livekit.agents import AgentSession
from memoair_livekit import MemoAirLiveKitAgent

async def entrypoint(ctx):
    agent = MemoAirLiveKitAgent(
        api_key="memoair_pk_...",       # account-scoped API key
        project_id="proj_xxx",          # which customer project
        agent_id="agent_xxx",           # which agent identity
        user_id=ctx.room.local_participant.identity,
        instructions="You are a helpful voice assistant.",
    )

    # Or read MEMOAIR_API_KEY / MEMOAIR_PROJECT_ID / MEMOAIR_AGENT_ID /
    # MEMOAIR_USER_ID from the environment:
    # agent = MemoAirLiveKitAgent.from_env(instructions="...")

    session = AgentSession(vad=..., stt=..., llm=..., tts=...)

    # Required: LiveKit's base Agent does NOT call on_agent_response_completed.
    # Without this wiring, search runs every turn but nothing is saved.
    @session.on("conversation_item_added")
    def _on_item_added(event):
        if event.item.role == "assistant":
            asyncio.create_task(
                agent.on_agent_response_completed(session.chat_ctx, event.item)
            )

    await session.start(agent=agent, room=ctx.room)

Full docs: https://docs.memoair.dev/voice/integrations/livekit

Metadata

Release files for memoair-livekit 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for memoair-livekit 0.3.2
File Size Uploaded Provenance Actions
memoair_livekit-0.3.2.tar.gz 16.2 kB Without provenance Details for memoair_livekit-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memoair-livekit 0.3.2
File Interpreter ABI Platform Actions
memoair_livekit-0.3.2-py3-none-any.whl Python 3 none any Details for memoair_livekit-0.3.2-py3-none-any.whl

Total release size: 25.4 kB

Release files / memoair_livekit-0.3.2.tar.gz

Download URL memoair_livekit-0.3.2.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
43d3e0564687dbd6f7416550d7385efd53555332e95d2ce073d10b3cb8d93b55
BLAKE2b-256 checksum
How to use checksums
0b087c258e78e428d0a8b21a160bbf4daf3439361b79fd059df88266b4e17d09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / memoair_livekit-0.3.2-py3-none-any.whl

Download URL memoair_livekit-0.3.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
085e478a2a40947c38abdfaa0bce26f7f8d81b2c5e0595f46054e5fa5ca81db6
BLAKE2b-256 checksum
How to use checksums
df4a6882b962e3835d063ad49bd74567ce65c36e336f65eec2702c18d1228285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for memoair-livekit 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page