Deserializes the given serialized content data into a ChatResponseContent instance.
The registry looks up the appropriate deserializer based on the kind property
of the serialized data and delegates to that deserializer's deserialize method.
If no deserializer is found for the content kind, an UnknownChatResponseContentImpl
instance is returned with the original data and fallback message preserved.
A warning is also logged with the missing kind and available kinds.
The serialized content data to deserialize
The deserialized content, or a Promise that resolves to the deserialized content
Registers a deserializer for a specific content kind.
If a deserializer for the same kind is already registered, it will be replaced.
The deserializer to register
Registry for chat content deserializers.
This registry maintains a collection of deserializers for different content types and provides methods to register new deserializers and deserialize content data.
Example
See