ChatCompletionMessageSerializer

Custom serializer for ChatCompletionMessage that enforces the assistant role on the wire and omits null tool_calls fields from the output.

Exposed publicly because it is referenced from the @Serializable(with = ...) annotation on ChatCompletionMessage; callers do not normally invoke it directly.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): ChatCompletionMessage
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: ChatCompletionMessage)