Skip to main content

ZizkaDB + LiveKit Agents

PyPI: zizkadb-livekit 0.1.0 · depends on zizkadb-sdk>=0.2.7 + livekit-agents>=1.3.0

Log voice calls to ZizkaDB with the same Activity → Sessions / Events model as text agents.

  • One session_id per call (use LiveKit room name or job id)
  • Transcript only — text copied from LiveKit make_session_report() (no audio in ZizkaDB)
  • Backend eventstool_call, tool_result, error, pipeline events from the report
  • Causal lineageparent_id chains for Why? in the dashboard

Install

pip install "zizkadb-livekit>=0.1.0"

Start ZizkaDB (Docker quickstart):

curl -fsSL https://raw.githubusercontent.com/Zizka-ai/ZizkaDB/main/scripts/quickstart-remote.sh | bash

Usage

import os
from livekit.agents import AgentServer, JobContext, AgentSession, Agent
from zizkadb import ZizkaDB
from zizkadb_livekit import ZizkaDBLiveKitObserver

server = AgentServer()

async def on_session_end(ctx: JobContext) -> None:
    await observer.ingest_session_report(ctx)

@server.rtc_session(agent_name="support-voice", on_session_end=on_session_end)
async def entrypoint(ctx: JobContext):
    await ctx.connect()

    db = ZizkaDB(host=os.getenv("ZIZKADB_HOST", "http://localhost:8000"))
    global observer
    observer = ZizkaDBLiveKitObserver(
        db,
        agent=os.getenv("ZIZKADB_AGENT", "support-voice"),
        session_id=f"call_{ctx.room.name}",
    )
    await observer.log_session_started(room=ctx.room.name, job_id=ctx.job.id)

    session = AgentSession(...)
    observer.attach(session, job_ctx=ctx)  # optional realtime turns

    await session.start(agent=Agent(instructions="..."), room=ctx.room)

Open http://localhost:3001 → Activity → your agent → Sessions.

Event types

Event Source
session_started Call connect
user_message LiveKit user transcript
assistant_response LiveKit agent transcript
tool_call / tool_result Tools + report pipeline events
error Failures
session_ended Post-call ingest

Manual helpers: log_tool_call, log_tool_result, log_error.

Environment

export ZIZKADB_HOST=http://localhost:8000   # self-host
export ZIZKADB_AGENT=support-voice
# Cloud: export ZIZKADB_API_KEY=zizkadb_live_...

See examples/livekit-agent for a full sample.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zizkadb_livekit-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zizkadb_livekit-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file zizkadb_livekit-0.1.0.tar.gz.

File metadata

  • Download URL: zizkadb_livekit-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for zizkadb_livekit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f704bef218a72fa6874885cb889ab722ae834ceb3b168c340ce93d3907a1b4c6
MD5 affaf9345c3856da5fb980ade4d92ba0
BLAKE2b-256 9455557471f17a57d67d63643512113651b8247591c9dee952ae5c1033365034

See more details on using hashes here.

File details

Details for the file zizkadb_livekit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zizkadb_livekit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70b150cfb56c1e2e528a1098aff75866068b6ade1fda3d85eeb8a0241e60ef60
MD5 e2ddd63a59d0a88c7f7bfff686b91386
BLAKE2b-256 6b6f74c62cf9c061700d9c328a3994177c40bcf68725bb558049f0b581a5d876

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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