Changelog

All notable changes to the Trustwise SDK will be documented in this file.

v4.5.0 (2026-04-30)

Breaking Changes

  • Agents are now project-scoped — all client.agents methods now require a project_id as the first argument. The old /v1alpha/agents/ endpoints have been removed from the API.

  • ``ProjectResource``list_components, assign_component, and unassign_component methods removed (endpoints removed from the API).

  • ``EvaluationResource.update`` — now uses PATCH instead of PUT.

  • ``GuardrailResource.provider_schemas`` — no longer accepts a provider argument; returns schemas for all providers.

New Features

  • Events (client.events) — list, get, and dismiss platform event notifications with filtering by severity, status, type, and project.

  • Subscriptions (client.subscriptions) — full CRUD for event subscriptions; supports webhook, email, Slack, and Teams handlers.

  • Runtime Providers (client.runtime_providers) — browse available agent runtime provider types and their auth schemas.

  • Organization Logo (client.organizations) — upload_logo, get_logo, update_logo, delete_logo methods added.

  • Guardrail Provider extensions (client.guardrails) — provider_guardrails() and provider_regions() for browsing guardrails and regions available from external providers (e.g. AWS Bedrock).

  • Policy batch evaluate (client.policies) — new evaluate_batch() method evaluates content against multiple policies in a single API call.

  • ``PlatformHTTP`` — added patch() method.

Other

  • Package status promoted from Beta to Production/Stable.

v4.4.0b1 (2026-04-08)

New Features

  • TrustwiseClient – New unified platform client providing access to all Trustwise APIs through a single interface: agents, guardrails, policies, evaluations, risk engine, red-team generation, and all v4 metrics.

  • Platform API resources – 11 resource classes covering 80+ API endpoints with typed return values and raw=True envelope access.

Deprecations

v1.0.0b10 (10-07-2025)

Deprecation Notices

  • V3 Metrics Deprecation: V3 metrics are now deprecated and will be removed in a future version. Please migrate to V4 metrics for continued support and enhanced features.

  • Future Default Behavior: V4 metrics will become the default when calling metrics.* without version specification once V3 is fully deprecated.

Features

  • Added support for V4 (alpha) metrics

  • Python 3.13 support

Migration

  • Added comprehensive migration guide for V3 to V4 metrics transition

  • Enhanced V4 metrics documentation with all available metrics

  • Improved type safety and response structures in V4 metrics

v1.0.0 (06-20-2025)

Features

  • Initial release of Trustwise Python SDK

  • Unified interface for evaluating AI-generated content across 14+ metrics: - Faithfulness - Answer Relevancy - Context Relevancy - Summarization - Prompt Injection Detection - PII Detection - Clarity - Helpfulness - Toxicity - Tone - Formality - Simplicity - Sensitivity - Cost Estimation - Carbon Emissions

  • Experimental guardrails system for multi-metric validation, threshold configuration, and block-on-failure functionality

  • Cost and carbon emissions estimation for model runs

  • Flexible configuration via environment variables or direct instantiation (API key, base URL, etc.)

  • Strong type definitions for all request and response objects

  • Serialization support: all responses can be converted to JSON and Python dicts for easy integration

  • Explicit and default API versioning with version switching and fallback

  • Designed for extensibility to support future metrics and features

  • Comprehensive documentation, including quickstart, usage, and API reference

  • Added async SDK (TrustwiseSDKAsync) for full asynchronous metric evaluation.

  • Added support for inline explanations for each metric evaluation call.

Metrics

  • Added support for context-based faithfulness, answer relevancy, and other metrics

  • Implemented query-response alignment scoring

  • Added cost and carbon evaluation for model runs

  • Added support for stability, adherence, completion and refusal metrics

Guardrails System (Experimental)

  • Added multi-metric guardrail system with configurable thresholds

  • Implemented block-on-failure functionality

  • Added support for comprehensive evaluation result aggregation

  • Introduced flexible threshold configuration per metric

Version Management

  • Added explicit version support for all API endpoints

  • Added version switching capabilities

  • Introduced version-aware evaluation methods

Configuration

  • Added environment variable based configuration

  • Implemented direct configuration through TrustwiseConfig

  • Added support for API key and base URL configuration

  • Introduced flexible configuration options for all features