coreason-arbitrage
Project description
coreason-arbitrage
The "Traffic Controller" / The Smart Switch for CoReason-AI.
Installation
pip install coreason-arbitrage
Features
- Intelligent Routing: Cascading model strategy to select the right model for the right task (Tier 1, Tier 2, Tier 3).
- Cost Optimization: Prevents "Token Burn" by routing simpler tasks to cheaper models and using Economy Mode.
- Resiliency: Circuit Breaker mechanism to failover to backup providers during outages.
- Provider Agnosticism: Decoupled from specific vendors, avoiding lock-in.
- FinOps: Real-time cost tracking and logging.
See Product Requirements for more details.
Usage
from coreason_arbitrage.engine import ArbitrageEngine
# Initialize the engine (Singleton)
# Note: You can optionally configure it with your specific clients
engine = ArbitrageEngine()
# Get a smart client capable of handling the request
# This client mimics the OpenAI interface but routes intelligently
client = engine.get_client()
# Use the client to create a completion
response = client.chat.completions.create(
messages=[{"role": "user", "content": "Explain quantum computing in simple terms."}],
# Arbitrage routing happens automatically based on content analysis
)
print(response.choices[0].message.content)
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 coreason_arbitrage-0.2.1.tar.gz.
File metadata
- Download URL: coreason_arbitrage-0.2.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c61cf57c3f37a655c0d924b9d89b1ce2924cf3621002d6ff59404e241cae95ea
|
|
| MD5 |
cd47524a0bf5cf36eaab8dac55c21bfb
|
|
| BLAKE2b-256 |
9cbdbe67be6752741d300ee827f00b71abf46372eb70085e522ebe4b04d5c9a7
|
Provenance
The following attestation bundles were made for coreason_arbitrage-0.2.1.tar.gz:
Publisher:
publish.yml on CoReason-AI/coreason-arbitrage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_arbitrage-0.2.1.tar.gz -
Subject digest:
c61cf57c3f37a655c0d924b9d89b1ce2924cf3621002d6ff59404e241cae95ea - Sigstore transparency entry: 868053044
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-arbitrage@cd36e2c368b6737eaca9335191e2bbcd4392e974 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cd36e2c368b6737eaca9335191e2bbcd4392e974 -
Trigger Event:
release
-
Statement type:
File details
Details for the file coreason_arbitrage-0.2.1-py3-none-any.whl.
File metadata
- Download URL: coreason_arbitrage-0.2.1-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27f1dba397a69e7e5978ce0fa5f805e85780a6fcce23866a27bd4e4fc21e0ae0
|
|
| MD5 |
c118c742b7fae137db3005596020440d
|
|
| BLAKE2b-256 |
ebde8b7e1a9ac30d5cf868b3797a70f1a69083041982906f612e4ab99cce59fb
|
Provenance
The following attestation bundles were made for coreason_arbitrage-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on CoReason-AI/coreason-arbitrage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_arbitrage-0.2.1-py3-none-any.whl -
Subject digest:
27f1dba397a69e7e5978ce0fa5f805e85780a6fcce23866a27bd4e4fc21e0ae0 - Sigstore transparency entry: 868053046
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-arbitrage@cd36e2c368b6737eaca9335191e2bbcd4392e974 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cd36e2c368b6737eaca9335191e2bbcd4392e974 -
Trigger Event:
release
-
Statement type: