Convenience: build a final result from a typed value. Serialises value
to JSON and uses it as the result's structuredContent, defaulting the
human-readable content to a single text block holding that same JSON.
The serialisation is done inline here (independent of any
CallToolResult.structured!T helper) so this overload stays compilable on
its own.
Convenience: build a final result from a typed value. Serialises value to JSON and uses it as the result's structuredContent, defaulting the human-readable content to a single text block holding that same JSON. The serialisation is done inline here (independent of any CallToolResult.structured!T helper) so this overload stays compilable on its own.