ToolResponse.complete

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.

  1. ToolResponse complete(CallToolResult r)
  2. ToolResponse complete(T value)
    struct ToolResponse
    static @safe
    complete
    (
    T
    )
    ()