Skip to main content

Signal feed client for model selection.

Project description

wzrd-client

Tiny Python client for WZRD model selection priors.

The goal is deliberately small:

  • call wzrd.pick() before an LLM request
  • optionally pass candidate model names from your framework or router
  • use the result as the next execution choice

This is an attention prior, not a full router. If you pass candidate model names, pick() scores them against the live feed. If you do not, it returns the strongest live signal it can find for the task hint.

Router wrapper

If you want a thin client wrapper, use WZRDRouter from wzrd.router. It only wraps clients that expose client.chat.completions.create(...). Explicit model names pass through unchanged. To trigger WZRD routing, pass model=None or a task sentinel like model="code" or model="chat".

Install

pip install wzrd-client

Quick start

import wzrd

model = wzrd.pick("code")
print(model)

Candidate-aware routing:

import wzrd

model = wzrd.pick(
    "code",
    candidates=[
        "openrouter/qwen/qwen3.5-9b",
        "openrouter/qwen/qwen3.5-35b-a3b",
        "anthropic/claude-sonnet-4.6",
    ],
)

If you want the metadata for logging or telemetry, use:

choice = wzrd.pick_details("code")
print(choice.model, choice.score, choice.trend, choice.confidence)

Environment variables

  • WZRD_API_URL: signal endpoint override
  • WZRD_TIMEOUT_SECONDS: request timeout
  • WZRD_CACHE_TTL_SECONDS: cache TTL for fetched signals
  • WZRD_FEED_LIMIT: number of feed rows to request

What it returns

  • pick() returns a model name string
  • pick_details() returns a structured record
  • shortlist() returns ranked records
  • compare() explains the relative signal strength between two models

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

wzrd_client-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

wzrd_client-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wzrd_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6602b5283fefcb8c68ae846c3a1b198102b88bf236997e6426604c13ea4c518d
MD5 0c7ee156c2ef4a48ea4fb85a363d69d7
BLAKE2b-256 d02359cd2480e4023805fab86fc8d7a35bf3912d335ad042106834564fd99320

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wzrd_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for wzrd_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1cdbcfee51a6c887b799e84557e38223ee446885f83f96741474278f31b0688
MD5 664f196e46b5aa99403c0847cc5322aa
BLAKE2b-256 cadc5a0bce1574c3c8b9e05ed0e71b1469ed4b2c71dccfacc0b2023544b9483e

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