AsTextSerializer
A serializer that converts an object implementing the TextSerializable interface into a textual format by utilizing the textForLLM
function defined in the interface.
This serializer provides functionality to encode the object into a string format suitable for textual representation and decodes it using a provided serializer for the type.
Parameters
The type of object being serialized/deserialized, constrained to types implementing TextSerializable.
The serializer responsible for handling the underlying type operations.
Properties
Functions
Provides a custom deserializer for tools using the KSerializer
interface. Converts the current serializer into a specialized tool descriptor deserializer if the underlying descriptor has a primitive kind.
Deserializes the provided encoded data using the specified decoder and returns the resulting object of type T.