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.1.0.tar.gz (16.1 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.1.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreason_arbitrage-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 00c36894c686e7e633b379cfe0e55cd60b03fc90a0abbf5675636647a75602e7
MD5 67a40895f3a1e465aea21e640c664977
BLAKE2b-256 4ff840439bdc47b2cd4401203c6c28cca13a5a3d3c034d4db50aa9d5730d43ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for coreason_arbitrage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24dcbaf28f8eb7b6d8a5d312e45cf639e7d2ede3b2b80fa02bdf18213d0f128b
MD5 c7fd860c4594c8f0411a4cd531d9aa5a
BLAKE2b-256 960f4c55e260df19497590ac734d3d2f9c0ae9d0bef7d9363dad141e84b6bf10

See more details on using hashes here.

Provenance

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