Skip to main content

Routing strategies for the AccuralAI orchestration pipeline.

Project description

accuralai-router

accuralai-router provides pluggable routing strategies for the AccuralAI orchestration core. Routers map canonicalized requests to backend identifiers using deterministic policies, weighted load balancing, failover rules, or metadata-aware predicates.

Features

  • Async routers that satisfy the Router protocol from accuralai-core.
  • Direct routing honoring request hints or configured defaults.
  • Weighted distribution with deterministic seeding and optional per-backend capacity limits.
  • Health-aware failover that cycles through fallback backends.
  • Rules engine that matches tags, metadata, or parameter values.

Install alongside the core orchestrator:

pip install accuralai-core accuralai-router

Development

python -m venv .venv && source .venv/bin/activate
pip install -e packages/accuralai-core[dev]
pip install -e packages/accuralai-router[dev]
pytest packages/accuralai-router/tests -q

Routers register entry points under accuralai_core.routers so accuralai-core can discover them automatically.

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

accuralai_router-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

accuralai_router-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: accuralai_router-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for accuralai_router-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1b222853eb2c44c13cbef1246896a0bb34e10b78dddc2915e5d1c203e527131
MD5 94ded602bf26d9e141176b660ee8defe
BLAKE2b-256 261be61a603750680dbeb0546139a447a2cc48e82d08e04cc47d3d3a65282f9e

See more details on using hashes here.

File details

Details for the file accuralai_router-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for accuralai_router-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d18fa4cd00cacb8ca040a185108542a088d7c9ea5043d8eb40a790bace9c1ab9
MD5 c2f7e588235696bac2d318c70215dc95
BLAKE2b-256 3bd5ed993d4034b8d16046687616dc0610debdd55ff1b117ab28e8bc07503a68

See more details on using hashes here.

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