Skip to main content

Interactive debugging tool for AI applications

Project description

Pixie

MIT License Python Version Discord

Web UI for AI agents manual testing.

This is the equivalent of LangSmith Studio/Google ADK Web, but for AI agents built in all kinds of ways without the framework constraint. Easy to setup, support multi-turn interactions, Human-in-the-loop, live tracing, and more.

Why?

Manually testing AI applications is time-consuming and cumbersome. Especially for early stage development, it doesn’t make sense to build e2e product just to test, or setup automated tests/evals. So the process ends up being a lot of inputting awkwardly into the command line, and looking through walls of logs in different places.

Demo

Demo Video

Features

  • Interactive Testing: Support for two way interaction with your application, plus the ability to pause/resume/stop.
  • Real-time Observability: Application traces are streamed in real-time while you debug.
  • Structured Input/Output: Native support for structured input/output using Pydantic models.
  • Data Privacy: Communications are only between your browser and your server, your data stays private.
  • Framework Support: Out-of-the-box support for popular AI development frameworks like Pydantic AI, OpenAI Agents SDK, LangChain, LangGraph, and more.

Get Started

1. Setup

In your project folder, install pixie-sdk package:

pip install pixie-sdk

Create .env file in your project folder and add LLM API key(s):

# .env
OPENAI_API_KEY=...

Add AI Development framework depdendencies as needed:

pip install pydantic-ai-slim[openai]

Start the local server for debugging by running:

pixie

2. Connect Your Application

Add @pixie.app decorator to your main application function:

# my_chatbot.py
from pydantic_ai import Agent

import pixie

# You can implement your application using any major AI development framework
agent = Agent(
    name="Simple chatbot",
    instructions="You are a helpful assistant.",
    model="gpt-4o-mini",
)


@pixie.app
async def my_chatbot():
    """Chatbot application example."""
    yield "How can I help you today?"
    messages = []
    while True:
        user_msg = yield pixie.InputRequired(str)
        response = await agent.run(user_msg, message_history=messages)
        messages = response.all_messages()
        yield response.output

You should see in the log of pixie server that your app is registered.

3. Debug with web UI

Visit the web UI gopixie.ai to start debugging.

Important Links

  • Documentation - Complete documentation with tutorials and API reference
  • Examples - Real-world examples and sample applications
  • Demo - Live Demo with the examples server setup
  • Discord - Join our community for support and discussions

Acknowledgments

This project is built on top of many awesome open-source projects:

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

pixie_sdk-0.2.16.dev1.tar.gz (270.2 kB view details)

Uploaded Source

Built Distribution

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

pixie_sdk-0.2.16.dev1-py3-none-any.whl (474.3 kB view details)

Uploaded Python 3

File details

Details for the file pixie_sdk-0.2.16.dev1.tar.gz.

File metadata

  • Download URL: pixie_sdk-0.2.16.dev1.tar.gz
  • Upload date:
  • Size: 270.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for pixie_sdk-0.2.16.dev1.tar.gz
Algorithm Hash digest
SHA256 d63d09bc72e78ea47814c6f14022a84d81bcda5defe042fef4467c20d72f6963
MD5 e33da84c53703640c6c9cbb2745f303d
BLAKE2b-256 723d7bb7ecd615de24bbe78791523e29460ea763b6fedf87ad8ec98569081c91

See more details on using hashes here.

File details

Details for the file pixie_sdk-0.2.16.dev1-py3-none-any.whl.

File metadata

  • Download URL: pixie_sdk-0.2.16.dev1-py3-none-any.whl
  • Upload date:
  • Size: 474.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for pixie_sdk-0.2.16.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 666d062133df791b9fefd73ab6a30d732bc372128feb9a4954d1ac0af6f99446
MD5 c92e0d30557edc53ecf76a7d27d086e6
BLAKE2b-256 c55ce225f5d2c2e57a5a6fab1e613c66e8a9b2aabe76a9b3dcc9dca04b9fd923

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