Commit graph

11 commits

Author SHA1 Message Date
Jeremiah Lowin
0600834da4 Fix single-element list unwrapping in tool content
Single-element lists like [1] were being incorrectly unwrapped to "1"
in unstructured content while multi-element lists remained as lists.
This created inconsistent behavior where the structure was lost for
single items.

This fix ensures lists always preserve their structure in unstructured
content regardless of length, making behavior consistent and predictable.

Also removes pretty-printing from JSON serialization for more compact
output across tools, prompts, and resources.

Fixes #1064

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 12:07:16 -04:00
Jeremiah Lowin
d8dc28b9b2 Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
Jeremiah Lowin
f1e3713fc6 Update test typing 2025-05-31 20:41:18 -04:00
zzstoatzz
7f46580c14 rm slop markers 2025-05-20 13:48:23 -05:00
Jeremiah Lowin
bf09a09163 Fix prompt test 2025-05-06 13:29:00 -04:00
Alain IVARS
f92abd446f Fix remark to use the fastmcp Client. 2025-05-03 16:39:35 +01:00
Alain IVARS
6086fe6ab8 Fix github remote errors. 2025-05-03 16:09:15 +01:00
Alain IVARS
09bbdb6178 Fix pre-commit ruff-format errors. 2025-05-03 15:48:10 +01:00
Alain IVARS
233f65948f Fix pre-commit ruff-format errors. 2025-05-03 15:06:17 +01:00
Alain IVARS
8068bed9fc Fix pre-commit errors. 2025-05-03 15:04:34 +01:00
Alain IVARS
b77907797c Add test coverage for simple_echo,complex_inputs, desktop, echo. 2025-05-03 14:57:23 +01:00