Skip to content

Valen Python SDK 0.3.0

Choose a tag to compare

@Liuziyu77 Liuziyu77 released this 29 Oct 08:57
· 7 commits to main since this release

Valen Python SDK 0.3.0 adds Valen.llm(provider, model): the same Decisions and SystemOne requests answered by an OpenAI-compatible, Anthropic or Gemini model, returning the same typed responses, so Valen and an LLM can be compared on the same questions with the same decision code. Usage includes tokens across retries and latency; every provider request and response is kept in debug["llm_attempts"]. Video inputs are sent as frames (valen-sdk[video], which now includes Pillow). No new base dependencies and no request/response schema change. See the README section "Compare with an LLM" and CHANGELOG.md.

Published on PyPI: https://pypi.org/project/valen-sdk/0.3.0/ through Trusted Publishing in https://github.com/Valen-Team/valen-sdk-python/actions/runs/40844916532 . The attached wheel and sdist are the PyPI files. The downloaded wheel passed SHA256 verification, its Python source matched tag v0.3.0, and installed in a clean environment it passed 42 contract tests (tests/test_server.py needs the server extra).

Install HTTP clients and Valen.llm with python -m pip install valen-sdk==0.3.0, or local CPU inference with python -m pip install "valen-sdk[onnx]==0.3.0". Verify SHA256SUMS. Test evidence: validation.json.