encodeResultToPartsUnsafe
fun encodeResultToPartsUnsafe(result: Any?, serializer: JSONSerializer): List<MessagePart.ContentPart>(source)
Encodes the given result as content parts without type safety checks.
Throws
If the provided result cannot be cast to the expected type TResult.