Skip to content

Swiss AI Hub v0.317.1

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Jul 07:16

Added

  • Instance DTO builder: Introduced a new utility (InstanceDtoBuilder) that provides resilience during the construction of Data Transfer Objects (DTOs) for agent and process instances. This builder now catches any errors during DTO creation, logging them and skipping the problematic instance, rather than crashing the entire listing operation.
  • Required localized string extraction: Added extract_required to the LocaleHandler, ensuring that critical localized fields, such as names and descriptions, always resolve to a string (coercing to an empty string if no locale data is found), preventing downstream errors when a string is expected.

Changed

  • Locale handling fallback behavior: The LocaleHandler's extract method now returns None when no valid localized string is available, instead of raising a ValueError. This makes locale data retrieval more robust by allowing for graceful handling of missing translations.
  • Agent and Process DTO localization: Updated how localized names and descriptions are extracted for Agent, Process, and Human Input DTOs by utilizing the new extract_required method, guaranteeing that these fields are always present as strings.

Fixed

  • Aggregate listing crashes: Resolved critical stability issues where a single agent or process instance with corrupt, malformed, or entirely empty localized data could cause the entire API listing or discovery operations to crash. Instances failing DTO construction are now safely skipped, and empty localized fields are properly coerced, significantly improving the robustness of the system.

References