Package-level declarations

Types

Link copied to clipboard

Polymorphic serializer for OpenAIResponseInputItem items that come from the OpenAI Responses API as plain JSON objects with a type discriminator.

Serializer for OpenAIResponsesComputerCallResult handling both the plain string form and the screenshot object form.

Link copied to clipboard
abstract class OpenAITextOrListSerializer<T, ITEM>(itemSerializer: KSerializer<ITEM>, createText: (String) -> T, createList: (List<ITEM>) -> T, extractText: (T) -> String?, extractList: (T) -> List<ITEM>?) : KSerializer<T>