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.0.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.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file coreason_arbitrage-0.2.0.tar.gz.

File metadata

  • Download URL: coreason_arbitrage-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8ac1428e68485ac5192ecbc1dd5367036c95da6541af5cebd07a68dd8af16668
MD5 ed92bb6ba86dd231ea168c3e7f2e4bc5
BLAKE2b-256 73ba6b9b3f548066027801833fef48927d2e3a1d69f1d9538b16e662a6162def

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_arbitrage-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_arbitrage-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb5cabb4ee7899940f967b8d969c444f9b9be6a43c058f203b521b2adcf2fc0
MD5 c1cd7a976147cb06e0b63e2275350c9f
BLAKE2b-256 e8c7706637c7e4477c3703e133988d78e13816ef24637b96f2806907133ffbaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_arbitrage-0.2.0-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