encodeResultToString

open override fun encodeResultToString(result: String, serializer: JSONSerializer): String(source)

Encodes the given result of type TResult to its string representation. This is used to provide the LLM with the result of the tool execution. It can be overridden to customize the string representation the LLM will see.

Parameters

result

The result object of type TResult to be encoded into a string.

serializer

The JSON serializer to use.