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
@AIToolscan generates wrong parameter schema:aiToolRegistry().scanClass()was wrapping annotated methods in a generic(args) =>lambda.getArgumentsSchema()introspected that wrapper and produced a singleargsproperty instead of the actual method parameters (e.g.,orderId), and therequiredarray was always empty for scanned tools. Fixed by storing the original method's parameter metadata (name,type,required) on theClosureToolviasetMethodParameters()and using it during schema generation when present. The wrapper lambda was also corrected to forward named arguments via theargumentsscope, 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 Registry —
scanClass()and annotation-based tool discovery
Last updated