ModelPreference

@Retention(value = AnnotationRetention.SOURCE)
@IntDef(value = [1, 2])
annotation ModelPreference


Defines the developer's preference to guide model selection, balancing characteristics like speed and capability.

Summary

Constants

const Int
FAST = 1

Prefers models optimized for faster inference speed, typically resulting in lower latency.

const Int
FULL = 2

Prefers models offering the fullest capabilities, potentially including higher accuracy or more features, which may result in increased latency and resource consumption.

Public constructors

Constants

FAST

const val FAST = 1: Int

Prefers models optimized for faster inference speed, typically resulting in lower latency. This may be ideal for real-time applications.

FULL

const val FULL = 2: Int

Prefers models offering the fullest capabilities, potentially including higher accuracy or more features, which may result in increased latency and resource consumption.

Public constructors

ModelPreference

ModelPreference()