encodeResultToString
Encodes the given result of type TResult to its string representation for the LLM.s
Return
The string representation of the given result.
Parameters
result
The result object of type TResult to be encoded into a string.