Skip to main content

Python SDK for the Warm Winter trust gate — is this AI/agent action trustworthy enough to act on, or escalate?

Project description

warmwinter (Python SDK)

The smallest wrapper around an AI/agent call that asks the one question the Warm Winter gate exists to answer: is this cheap answer trustworthy enough to act on — or should we escalate, or abstain? You keep executing; we only judge. Zero dependencies (stdlib urllib).

pip install warmwinter
from warmwinter import WarmWinter

ww = WarmWinter(api_key="ww_...")          # mint at /api/v1/gate/keys

# one call gates, runs the chosen path, and auto-reports the outcome
answer = ww.guard(
    domain="compute", decision_type="model_route", stated_confidence=0.82,
    cheap=lambda: small_model(prompt),
    escalate=lambda: big_model(prompt),
    verify=lambda out: out is not None,     # your success test
)

Or drive the two halves yourself with decide(...) and outcome(...). See the module docstring for the full surface.

Seamless alternative: point your existing OpenAI/Anthropic client's base_url at the gateway and change nothing else — see https://warmwinter.io/gate.

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

warmwinter-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

warmwinter-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for warmwinter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d3bed20648ce8798ecb7798942c183c86d9aa8ecb6bfa8cac12fa839dbc8f10
MD5 da0f43e9ac099ec8073e252449eaed20
BLAKE2b-256 9a67fb1a3839ec26ae74d9bca67b8af5bec4e99c75df9527e376fd596f5b4b67

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for warmwinter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7896101cf40b8688f0921b9ecb79c4ab9f21a8ccb449085f5279904d359438ea
MD5 b312b9277bf94aade506ad4f1e7a68e4
BLAKE2b-256 a74ef4de30bb1b6e682e4a352be4d3796e90fc098c59b89b297ca1715ab1825e

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