Production-Ready Agentic AI Framework with Enterprise Safety
Project description
🪁 Kite
Reliable AI Agents for Python
Fast • Safe • Simple • Powerful
Introduction
Kite is a lightweight Python framework for building production-grade AI agents.
Most agent frameworks rely heavily on prompt engineering for safety. Kite takes a different approach: it treats the LLM as an untrusted reasoning engine and enforces safety through code.
It provides a "kernel" that validates every action the agent proposes before it executes. This means you get strict control over permissions, blast radius, and failure handling.
⚡ Quick Start
Installation
pip install kite-agent
Your First Agent
Here is a simple agent that proposes refunds but is supervised by the framework.
import asyncio
from kite import Kite
async def main():
ai = Kite()
# 1. Define Tools (The Execution Layer)
# The only way the agent affects the world.
def refund_order(order_id: str):
print(f"💰 Refunding {order_id}...")
return "Refunded"
# Explicitly register the tool
refund_tool = ai.create_tool(name="refund", func=refund_order)
# 2. Define Policy (The Safety Layer)
# Stop if it fails 3 times in a row.
ai.circuit_breaker.config.failure_threshold = 3
# 3. Create Agent (The Cognition Layer)
agent = ai.create_agent(
name="SupportBot",
tools=[refund_tool],
system_prompt="You are a support agent. Propose refunds if asked."
)
# 4. Run (The Kernel Supervision)
# The framework validates the tool call before execution.
result = await agent.run("Please refund order #999")
print(result['response'])
if __name__ == "__main__":
asyncio.run(main())
🎯 Core Philosophy
- Code over Prompts: Safety logic belongs in Python, not in English prompts.
- Whitelisting: Agents should only have access to tools you explicitly whitelist.
- Circuit Breakers: Prevent infinite loops and cascading API failures.
- Auditable: Every decision and action is traced.
⚡ The "Kernel" Pattern
In Kite, the agent doesn't execute code directly. It proposes actions to the Kernel.
# ❌ BAD: Logic in Prompt
# "Please check if the user is admin before deleting"
# Result: LLM might ignore this.
# ✅ GOOD: Logic in Code (Kite)
def delete_user(user_id: str):
if not current_user.is_admin:
raise SecurityError("Permission Denied")
db.delete(user_id)
🚀 Key Features
- Multiple Reasoning Patterns: Support for ReAct, ReWOO, Tree-of-Thoughts.
- Production Safety: Built-in circuit breakers, idempotency keys, and shell access whitelists.
- Memory Systems: Vector RAG, Graph RAG, and persistent session memory.
- Multi-Provider: Switch between OpenAI, Anthropic, Groq, and Ollama purely via config.
- Human-in-the-loop: Pause execution for human approval on sensitive actions.
📦 Architecture Overview
Kite is modular. You can use the components independently.
kite/
├── agents/ # Reasoning engines (ReAct, Plan-Execute)
├── memory/ # Vector & Graph memory
├── safety/ # Circuit breakers & Guardrails
├── routing/ # Model routing (Fast vs Smart)
└── tools/ # Standard tool library
📈 Performance
- Startup: ~50ms (lazy loading)
- Memory: <100MB base footprint
- Throughput: Designed for high-concurrency async workloads.
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md.
📜 License
MIT License - see LICENSE for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kite_agent-0.1.1.tar.gz.
File metadata
- Download URL: kite_agent-0.1.1.tar.gz
- Upload date:
- Size: 145.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1d47f64a118c21e09a554801d8bb1881b63f4df3c5806a4001702f6535c072
|
|
| MD5 |
a4332ffa8aaa373dc551867df89fec22
|
|
| BLAKE2b-256 |
59f58549c9cd4068dc5370d887168d0239f3d32faa20b11487a5f2c136c5fa9c
|
File details
Details for the file kite_agent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kite_agent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 143.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9783bd2a21161512ceb1f19316dcb209be57c9c2c292a29f4184ddd8b8a954de
|
|
| MD5 |
d13d0f3fc1a1c8a68a1ce8610c483b2f
|
|
| BLAKE2b-256 |
af0b562405a3f987b3a991cbbb993d785c58f60812c9b906bf9bd6702613c6dd
|