agent-lattice 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1654,3 +1654,11 @@ returns. Both fields are optional and absent when the client does not report
1654
1654
  them.
1655
1655
 
1656
1656
  *Requires 0.16.0 or later.*
1657
+
1658
+ ## Invalid tool argument JSON
1659
+
1660
+ *Requires 0.25.1 or later.*
1661
+
1662
+ When a completed Anthropic-compatible stream contains malformed tool argument JSON, the SDK does not execute the tool. It returns a matching `tool_result` with `is_error: true`, identifies the JSON syntax problem (including a character position when available), lists required top-level fields, and asks the model to regenerate complete arguments from the tool schema. Raw argument excerpts are not echoed in the error.
1663
+
1664
+ Incomplete intermediate chunks are not errors if the final JSON is valid. Valid JSON objects, including `{}`, still go through normal schema validation. Valid JSON values that are not objects are rejected before execution. Existing turn limits still apply; this feedback does not guarantee that a model will correct its response.