Download Latest Version director_ai-3.11.1.tar.gz (511.8 kB)
Email in envelope

Get an email when there's a new version of director-ai

Home / v2.2.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-03-02 1.7 kB
v2.2.0 -- Scoring Cadence, Validation, Enterprise Lazy Loading source code.tar.gz 2026-03-02 1.5 MB
v2.2.0 -- Scoring Cadence, Validation, Enterprise Lazy Loading source code.zip 2026-03-02 1.6 MB
Totals: 3 Items   3.1 MB 0

What's New

Adaptive Scoring Cadence

  • score_every_n, adaptive, max_cadence on StreamingKernel and AsyncStreamingKernel
  • Cadence 4 = ~870% overhead (vs ~3200% at cadence 1); adaptive ramps up when coherent, snaps back on dip
  • Domain recommendations: cadence=1 for medical/legal, 4 for general, 8 for latency-critical

Runtime Validation

  • CoherenceScorer now validates threshold, soft_limit, w_logic, w_fact on construction
  • soft_limit default clamped: min(threshold + 0.1, 1.0) (handles threshold=1.0 edge case)

Enterprise Lazy Loading

  • TenantRouter, Policy, Violation, AuditLogger, AuditEntry lazy-loaded via __getattr__
  • Importing CoherenceScorer no longer pulls in enterprise modules
  • [enterprise] optional dependency group + enterprise pytest marker

Import Cleanup

  • Stdlib imports (re, asyncio, time) hoisted to module top in scorer.py
  • Internal imports (otel.trace_review, otel.trace_streaming) hoisted in scorer.py and streaming.py
  • Optional deps (openai, anthropic) stay lazy with # lazy: optional dep comment

Streaming Overhead Benchmark

  • python -m benchmarks.streaming_overhead_bench — tokens/sec at cadences none/1/4/8/adaptive
  • Integrated into regression suite (test_streaming_overhead)

Documentation

  • New: guide/streaming-overhead.md with cadence parameter table, overhead numbers, domain recommendations

Full Changelog

https://github.com/anulum/director-ai/blob/main/CHANGELOG.md#220---2026-03-02

Install

:::bash
pip install director-ai==2.2.0
Source: README.md, updated 2026-03-02