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.dev3.tar.gz (270.5 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.dev3-py3-none-any.whl (474.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixie_sdk-0.2.16.dev3.tar.gz
  • Upload date:
  • Size: 270.5 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.dev3.tar.gz
Algorithm Hash digest
SHA256 53d08f34cfb84ba6834b58e3c0c27897c3f067b79d28e3f89d8947329f5f2a0d
MD5 f6674b31a96d1c6151998d4124a1bd09
BLAKE2b-256 894faab351fed4c215913cefd6f99662361f06978afae171b9163ceeb7b36872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixie_sdk-0.2.16.dev3-py3-none-any.whl
  • Upload date:
  • Size: 474.6 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.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddede1773110367d70f3b1134a134d673642448decb99f65c6fa3c87b8e9d44
MD5 32faba91f50ca3e2748e6d0cfcdb04df
BLAKE2b-256 c0287b97aafdf2adaa2b0fcc070ad145bf25b487aeab6b89c346206138f164b4

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