Skip to main content

Testing and Observability SDK for AI Agents

Project description

Cekura Python SDK

Testing and Observability for AI Voice Agents. Launch in minutes not weeks by ensuring your agents deliver a seamless experience in every conversational scenario.

Installation

pip install cekura

LiveKit Integration

Setup

  1. Create a new agent in the Cekura dashboard
  2. Select LiveKit as the provider in agent settings
  3. Enable tracing for your agent
  4. Copy your API key and Agent ID

Quick Start

import os
from cekura.livekit import LiveKitTracer

# Initialize Cekura tracer
cekura = LiveKitTracer(
    api_key=os.getenv("CEKURA_API_KEY"),
    agent_id=123
)

@server.rtc_session(agent_name="my_agent")
async def entrypoint(ctx: agents.JobContext):
    # Create your LiveKit session
    session = agents.AgentSession(...)

    # Start Cekura session tracking
    session_id = cekura.start_session(session)

    # Add shutdown callback to export Cekura data
    async def cekura_shutdown():
        await cekura.export(session_id, ctx)

    ctx.add_shutdown_callback(cekura_shutdown)

    # Start your session
    await session.start(room=ctx.room, agent=YourAssistant())

Next Steps

After integrating the SDK, you can:

  • Run tests from the Cekura platform
  • Monitor real-time conversations
  • Analyze performance metrics
  • Review conversation transcripts and tool calls

Features

  • Automatic Metrics Collection: Captures STT, LLM, TTS, and End-of-Utterance metrics
  • Conversation Tracking: Records complete chat history with tool calls
  • Session Reports: Generates comprehensive session reports from LiveKit
  • Easy Integration: Simple API with minimal setup required

Configuration

Parameters

  • api_key (str, required): Your Cekura API key
  • agent_id (int, required): Unique identifier for your agent from Cekura dashboard
  • host (str, optional): API host URL (default: https://api.cekura.ai)
  • enabled (bool, optional): Enable/disable tracing. Defaults to CEKURA_TRACING_ENABLED env var ("true" if not set)

Data Collected

The SDK automatically collects:

  • Session start/end timestamps
  • Complete conversation transcripts
  • Tool/function calls and outputs
  • Performance metrics:
    • Speech-to-Text (STT) latency and duration
    • LLM token usage and timing
    • Text-to-Speech (TTS) generation time
    • End-of-Utterance detection timing
  • Room and job information
  • Custom metadata

Requirements

  • Python 3.9+
  • aiohttp>=3.9.0

License

MIT License - see LICENSE file for details.

Links

Support

For support, email support@cekura.ai

Project details


Download files

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

Source Distribution

cekura-1.0.0b2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

cekura-1.0.0b2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file cekura-1.0.0b2.tar.gz.

File metadata

  • Download URL: cekura-1.0.0b2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cekura-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 57e25dfcf0e2fc6a986e482e33176ab2c8741001b4381e2580767d5348ac84cc
MD5 272393a7cdb057840e4dc9abb3b7e39a
BLAKE2b-256 d92adb668e227ca76a6bb6d3b303c313514c33cfd5581b8e75df72932fb931b4

See more details on using hashes here.

File details

Details for the file cekura-1.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: cekura-1.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cekura-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa69b4403e096b79e370e34615c4cbc5ea55c85010c0fa76fe881bcf0fa88b19
MD5 c9988aee878e8592d221fbf89314b9ce
BLAKE2b-256 359deaef7ac08e5963d56c9a03d9963087fbe1cae63ae81561fd9af0e35417cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page