Feature

@Retention(value = AnnotationRetention.SOURCE)
@IntDef(value = [1, 2, 3, 4, 5])
annotation Feature


Features (capabilities) that may be supported by a generative model.

Summary

Constants

const Int

Function calling (tool use) to interact with external systems.

const Int

Prefix caching (context caching) to optimize inference latency.

const Int

Structured JSON output conforming to a schema.

const Int

System prompts (instructions) to guide the model's behavior.

const Int

Thinking mode (reasoning) for complex tasks.

Public constructors

Constants

FUNCTION_CALLING

const val FUNCTION_CALLING = 5: Int

Function calling (tool use) to interact with external systems.

PREFIX_CACHING

const val PREFIX_CACHING = 3: Int

Prefix caching (context caching) to optimize inference latency.

STRUCTURED_OUTPUT

const val STRUCTURED_OUTPUT = 4: Int

Structured JSON output conforming to a schema.

SYSTEM_PROMPT

const val SYSTEM_PROMPT = 1: Int

System prompts (instructions) to guide the model's behavior.

THINKING_MODE

const val THINKING_MODE = 2: Int

Thinking mode (reasoning) for complex tasks.

Public constructors

Feature

Feature()