LiveKit Agent integration for MemoAir voice memory
Project description
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 MemoAirVoiceAgent
async def entrypoint(ctx):
agent = MemoAirVoiceAgent(
api_key="mka_...",
project_id="proj_123",
user_id=ctx.room.local_participant.identity,
instructions="You are a helpful voice assistant.",
)
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
memoair_livekit-0.2.1.tar.gz
(12.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memoair_livekit-0.2.1.tar.gz.
File metadata
- Download URL: memoair_livekit-0.2.1.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e32576673a0538668932c99b74266e9b3eb45f08fffbf97fc5bdc82202489795
|
|
| MD5 |
e8a727a3ca2a2e0b63fba51814e8d718
|
|
| BLAKE2b-256 |
358ac883f9410458b27be8ec0aee39cae8c3582cf9c24c29b8ee64e77d4f668d
|
File details
Details for the file memoair_livekit-0.2.1-py3-none-any.whl.
File metadata
- Download URL: memoair_livekit-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11fb60370c13315b36e55011dc3452a35667a91989a7c3f762c1c11ab5148019
|
|
| MD5 |
b7d6380d9ad4ae2ea35fcc3cfe9e4928
|
|
| BLAKE2b-256 |
3ccac381d1c0d5ae5113e104b390bca89cf9e45f944e996dc2dbee4fcd345c5f
|