Represents the result of a tool operation, encapsulating the value of the result, its type, and the JSON serialization logic.
The JSON configuration used for serialization and deserialization.
The actual result value produced.
The Kotlin type of the result value.
Converts the encapsulated result into a JSON string representation using the specified serializer and type.