For the complete documentation index, see llms.txt. This page is also available as Markdown.

3.3.1

BoxLang AI Module 3.3.1 — Fix for @AITool annotation scanning generating incorrect parameter schemas.

Released: June 2026

BoxLang AI 3.3.1 is a targeted patch release fixing a schema-generation bug in @AITool annotation scanning.


🪲 Fixed

  • @AITool scan generates wrong parameter schema: aiToolRegistry().scanClass() was wrapping annotated methods in a generic (args) => lambda. getArgumentsSchema() introspected that wrapper and produced a single args property instead of the actual method parameters (e.g., orderId), and the required array was always empty for scanned tools. Fixed by storing the original method's parameter metadata (name, type, required) on the ClosureTool via setMethodParameters() and using it during schema generation when present. The wrapper lambda was also corrected to forward named arguments via the arguments scope, ensuring invocation works correctly once the schema exposes real parameter names.

This fix is transparent — no code changes are required for existing @AITool-annotated classes; scanned tools now simply produce a correct, model-usable schema.


📖 Documentation

  • Tool RegistryscanClass() and annotation-based tool discovery

Last updated