Real-Time LLM Traffic Shadowing Platform SDK
Project description
UniverseOS 🌌
Real-Time LLM Traffic Shadowing Platform
UniverseOS is a drop-in library for safe, real-time experimentation with Large Language Models. It allows you to shadow production traffic to experimental models ("parallel universes") without impacting user latency or reliability.
🚀 Quickstart
1. Start the Control Plane
docker-compose up -d
2. Install the SDK
pip install universeos
3. Instrument Your Code
from universeos import universe_shadow, init_universe
init_universe()
@universe_shadow
def chat(prompt):
# Your existing OpenAI/LLM call
return openai.ChatCompletion.create(model="gpt-4", ...)
🌟 Features
- Zero-Latency Overhead: Shadowing happens asynchronously.
- Dynamic Routing: Add/remove shadow models instantly via Registry.
- Causal Policy Engine: Intelligent traffic routing based on real-time feedback.
- Observability: Built-in metrics for latency, cost, and quality.
📂 Structure
sdk/python: Python Client SDK.services/gateway: High-performance C++ Proxy.services/policy: Bandit Algorithm Engine.services/registry: Service Discovery.services/metrics: Telemetry Ingestion.
🛠 Building from Source
mkdir build && cd build
cmake ..
make
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 universeos-0.1.0.tar.gz.
File metadata
- Download URL: universeos-0.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72e17b18a4ffb00d7ab9803994b3ed4adb810a2fbb1954b59573dc364e3027de
|
|
| MD5 |
6b6bc844b9f3ee2b1478f8a57908445f
|
|
| BLAKE2b-256 |
ab73c750c4da6bd65debb5d252acdcd1daf1b409d5eda0114a2866d5040dd253
|
File details
Details for the file universeos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: universeos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7378121f7163056b5168f599148da930c64574ffcbfece6b706945fcb66c957a
|
|
| MD5 |
e9d5bc238698e1dec63011367d59b4e3
|
|
| BLAKE2b-256 |
627cbbc145291ade065cedbd21c2795d36c37b080d3ab9dcdbf3c08425e10e63
|