Mapper

interface Mapper<T>

Generic mapping contract for converting between domain layers.

Implementations map from a provider-specific type (e.g. OpenAI) to a core domain type (e.g. io.kory.core.model.Model).

Type Parameters

T

The target domain type.

Functions

Link copied to clipboard
abstract fun map(): T

Maps this object to the target domain type T.