Install

Works with Drupal: ^10.5 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 124.4 KB
MD5: 8a32418d95b72c18423177058a2a12a2
SHA-1: fab0cf541ce28b50a6af6e61b4d1cd43263d62d9
SHA-256: ec4116b563d8049764c758e7483284cb251a9a77b49739d7e57e5cf2af4ddd73
Download zip 231.5 KB
MD5: c0e70395d61a7b5b6980a0d286e1875a
SHA-1: 2d83eb674540ec4846da35070d5435dd3362a4ee
SHA-256: 8b5d82ce1dae576be28e52655d59235aa350058a104ebc1f0ccb00c23c3d2b4b

Release notes

This release hardens the LLM tool-calling contract end to end: schemas now tell the truth about constraints and formats, invokers tolerate the value shapes models actually send, validation is enforced for every item of every input, and failures come back structured and named so models can self-correct instead of giving up. It also lands the pre-RC1 API corrections while they are still cheap.

Richer, truthful schemas

  • #3582972: Emit richer JSON Schema — Regex constraints as ECMA patterns, comparison and Count bounds, Email/Uuid/bundle/country constraints, decimal and datetime formats, title alongside descriptions, additionalProperties: false on the input root, and empty properties encoding as {}.
  • #3582958: Entity handle descriptions are no longer HTML-escaped in LLM-facing schemas.

Tolerant input coercion

  • #3582973: Coerce unambiguous LLM value shapes — JSON strings for maps/lists, enum case/whitespace near-misses, datetime and timestamp formats, integral floats, integer booleans, and empty strings for optional non-string inputs.
  • #3582983: Coerce bare JSON numbers to strings for decimal inputs.

Validation enforced everywhere

  • #3582960: Every item of a multiple input is validated, not just the first (thanks Alex Urevick-Ackelsberg).
  • #3582982: ListInputDefinition items (including lists nested in maps) are validated, with the failing position named in the message.

Structured, safe failure reporting

  • #3582961: access() fails closed on invalid input instead of throwing; the AI invoker reports validation detail distinctly from genuine access denials.
  • #3582981: Un-storable input values (e.g. a malformed JSON string for a map) fail with the input named instead of an uncaught exception.
  • #3582971: Violation messages are translatable; unexpected exceptions are logged to the new tool logger channel and no longer leak internals into results.

Pre-RC1 API corrections

  • #3582962: Signature batch — working create() factories on all input definition classes, NULL context values normalize to [], prepareExecutableValue() removed from the interface, and ToolOperation::Transform is now correctly idempotent.
  • #3582964: Tool results are typed against new ToolResultInterface/FormattedToolResultInterface value contracts; ToolInterface owns execute(): static and no longer extends core's ExecutableInterface; ExecutableResultInterface is a deprecated shell removed in rc1.
  • #3582963: Module-prefixed adapter alter hook (hook_tool_typed_data_adapter_info_alter()) and cache key; the legacy hook still fires with a deprecation until rc1.
  • #3582965: The unimplemented cacheability contract is dropped from ToolInterface.
  • #3582975: checkRequirements() is documented and pinned as a configuration-time signal — it deliberately never blocks execute() or access().
  • #3582986: ToolBase's logger channel is required and keeps the conventional $logger name; subclasses redeclaring it must use the exact type LoggerChannelInterface.

Other fixes and coverage

  • #3582959: Configuration-sourced input values no longer fatal.
  • #3582984: fromDataDefinition() handles plain typed-data lists and unlabeled definitions.
  • #3582985: The AI connector no longer fatals on empty-map schemas (\ArrayObject handling).
  • #3582974: Kernel coverage completed for the typed input/output traits and definition pipeline.

Upgrade notes for tool authors

  • Subclasses declaring their own $logger property must type it exactly LoggerChannelInterface (or drop it and use the inherited tool channel).
  • Code typing against ExecutableResultInterface should move to ToolInterface (plugins) or ToolResultInterface (result values) before rc1.
  • Implementations of hook_data_type_adapter_info_alter() should rename to hook_tool_typed_data_adapter_info_alter() before rc1.
  • Consumers keying confirmation policy on ToolOperation::isIdempotent() will now see Transform report TRUE.
  • Unexpected exception text no longer appears in failure results — check the tool log channel for detail.
Created by: michaellander
Created on: 11 Aug 2026 at 03:36 UTC
Last updated: 11 Aug 2026 at 03:38 UTC
Bug fixes
New features

Other releases