ModelPreference

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


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

Summary

Constants

static final int
FAST = 1

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

static final 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

public static final int FAST = 1

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

FULL

public static final 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

ModelPreference

public ModelPreference()