mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-30 01:51:28 +00:00
examples/voice_agent.py runs in console mode or joins LiveKit rooms. It scopes memory from dispatch metadata, SUPERMEMORY_CONTAINER_TAG, or the participant, preloads the caller's profile, and greets returning callers by name. Tested on LiveKit Cloud: a second call greeted the caller by name and used a fact from the first call. The example is not included in the wheel or sdist.
14 lines
470 B
Text
14 lines
470 B
Text
# LiveKit Cloud project: Settings > API keys. The same keys cover STT, LLM, and TTS
|
|
# through LiveKit Inference.
|
|
LIVEKIT_URL=wss://your-project.livekit.cloud
|
|
LIVEKIT_API_KEY=
|
|
LIVEKIT_API_SECRET=
|
|
|
|
# https://console.supermemory.ai
|
|
SUPERMEMORY_API_KEY=
|
|
|
|
# Optional: pin every call to one caller while testing.
|
|
# SUPERMEMORY_CONTAINER_TAG=demo_caller
|
|
|
|
# Optional: require explicit dispatch, so your backend can pass {"container_tag": ...}.
|
|
# LIVEKIT_AGENT_NAME=memory-agent
|