Professional LLM Testing & Production Deployment Framework
PromptKit is an open-source framework for testing, optimizing, and deploying LLM-based applications with confidence.
PromptKit provides two main components:
- PromptKit Arena - A comprehensive testing framework for LLM conversations, prompts, and tool usage
- PromptKit SDK - A production-ready library for deploying LLM applications
# Clone the repository
git clone https://github.com/AltairaLabs/PromptKit.git
cd PromptKit
# Build and install tools locally
make install-tools-user
# Or install to system PATH (may require sudo)
make install-tools# Clone the repository
git clone https://github.com/AltairaLabs/PromptKit.git
cd PromptKit
# Build just arena
cd tools/arena && go build -o promptarena ./cmd/promptarena
# Or build just packc
cd tools/packc && go build -o packc .Note: Tools arena and packc are now independently buildable with no cross-dependencies. Direct installation via go install is not supported due to the monorepo structure with replace directives for shared internal packages (runtime and pkg).
# Run tests across multiple providers
promptarena run -c examples/customer-support
# View HTML report
open out/report.htmlimport (
"github.com/AltairaLabs/PromptKit/sdk"
"github.com/AltairaLabs/PromptKit/runtime/providers"
)
// Create a conversation engine
engine := sdk.NewEngine(sdk.Config{
Provider: providers.NewOpenAIProvider("gpt-4", ...),
Prompts: sdk.LoadPrompts("./prompts"),
})
// Execute conversations
result, err := engine.Chat(ctx, userMessage)This is a monorepo containing multiple tools and libraries:
promptkit/
βββ tools/
β βββ arena/ # PromptKit Arena - Testing framework
β βββ packc/ # Pack Compiler - Prompt packaging tool
βββ sdk/ # PromptKit SDK - Production library
βββ runtime/ # Runtime components and shared libraries
βββ pkg/ # Shared packages
βββ examples/ # Example scenarios and configs
βββ docs/ # Documentation
- OpenAI (GPT-4, GPT-3.5)
- Anthropic (Claude 3 Opus, Sonnet, Haiku)
- Google (Gemini Pro, Ultra)
- Easy to add custom providers
- Native Model Context Protocol support - Connect to any MCP-compliant tool server
- Real tool execution - Test with actual tools, not mocks
- Multi-server - Use memory, filesystem, databases, and custom tools simultaneously
- Auto-discovery - Tools are automatically discovered from connected servers
- Multi-turn conversation testing
- Provider comparison matrices
- Tool/function calling validation with real MCP tools
- Self-play testing with AI personas
- Cost and latency tracking
- Type-safe configuration
- Comprehensive error handling
- Context propagation
- Structured logging
- Tool execution framework
We welcome contributions! Please see CONTRIBUTING.md for details.
Apache License 2.0 - See LICENSE for details.
PromptKit is built and maintained by AltairaLabs.ai, a company focused on making LLM development more reliable and production-ready.
Built with β€οΈ by the AltairaLabs team