Skip to main content

coreason-arbitrage

Project description

coreason-arbitrage

The "Traffic Controller" / The Smart Switch for CoReason-AI.

Organization License: Prosperity 3.0 Build Status Code Style: Ruff Documentation

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

coreason_arbitrage-0.2.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coreason_arbitrage-0.2.1-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

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

Hashes for coreason_arbitrage-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c61cf57c3f37a655c0d924b9d89b1ce2924cf3621002d6ff59404e241cae95ea
MD5 cd47524a0bf5cf36eaab8dac55c21bfb
BLAKE2b-256 9cbdbe67be6752741d300ee827f00b71abf46372eb70085e522ebe4b04d5c9a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_arbitrage-0.2.1.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-arbitrage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coreason_arbitrage-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_arbitrage-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27f1dba397a69e7e5978ce0fa5f805e85780a6fcce23866a27bd4e4fc21e0ae0
MD5 c118c742b7fae137db3005596020440d
BLAKE2b-256 ebde8b7e1a9ac30d5cf868b3797a70f1a69083041982906f612e4ab99cce59fb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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