Skip to main content

hanzo-tools-llm

Models through Hanzo as MCP tools. Every call goes to api.hanzo.ai with the Hanzo credential hanzo_tools.core.HanzoCloud resolves (HANZO_API_KEY, then ~/.hanzo/config.json, then hanzo auth token).

Tools

  • llm — action-routed, default action query:
    • query: POST /v1/chat/completions. model defaults to enso-auto; "auto" lets Enso pick across the models your org can serve. max_cost (USD per 1,000 tokens) and max_latency_ms ride as X-Max-Cost and X-Max-Latency-Ms; fallback: true sends X-Hanzo-Fallback: allow, so the plan's fallback answers instead of a refusal. Returns {id, model, content, finish_reason, usage, served, paid_by, usage_state, usage_class, fallback, fallback_reason}, the last six read from the X-Hanzo-* headers (None when absent).
    • models: GET /v1/models, one row per model with family, class, what it supports, the catalog's per-million prices and variable; search, class (premium, ours, free), family and capability narrow it.
    • limits: GET /v1/ai/limits — plan, state, each class's percent, who pays, resets, paused models and the actions. Shares only, never an amount.
    • feedback: POST /v1/ai/feedback with request_id, signal and, for signal: rating, a rating of 1 to 3.
  • kai_decide — POST /v1/decisions: a state (text, object or array) and named typed questions (choice, score, noul), answered by Kai with calibrated probabilities; model is kai, a trained kai-<id> or typesafe/jev-1.13.

A plan refusal (402 or 429 with plan_allowance_used, paid_plan_required, free_plan_cap, model_cap, usage_cap_exceeded or insufficient_balance) is an error whose code is that refusal, with class, model, fallback, window, resets_at and actions; hanzoai.usage reads it.

Install

pip install hanzo-tools-llm

hanzo-mcp loads both tools through the hanzo.tools entry point.

Metadata

Release files for hanzo-tools-llm 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hanzo-tools-llm 0.2.2
File Size Uploaded
hanzo_tools_llm-0.2.2.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hanzo-tools-llm 0.2.2
File Interpreter ABI Platform
hanzo_tools_llm-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / hanzo_tools_llm-0.2.2.tar.gz

Download URL hanzo_tools_llm-0.2.2.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f93ee9f53deb117074a24cb249b4c85bb70556570a12ad3eb7a41dba2041b25a
BLAKE2b-256 checksum
How to use checksums
c172291b73977f39bfab9d78308e6d27900b1caee5b3ab6d036d46b8dda45357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / hanzo_tools_llm-0.2.2-py3-none-any.whl

Download URL hanzo_tools_llm-0.2.2-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e1d7719d8df865bafb001cdad38b8fdb76828aabc20c3a94b781d6685e718b9
BLAKE2b-256 checksum
How to use checksums
38d563b39e568ca346165b511ecc19916d60f1b97ee37b26d885679f1429d213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page