# Feature

# Feature


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

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `static final int` | `FUNCTION_CALLING = 5` Function calling (tool use) to interact with external systems. |
| `static final int` | `PREFIX_CACHING = 3` Prefix caching (context caching) to optimize inference latency. |
| `static final int` | `STRUCTURED_OUTPUT = 4` Structured JSON output conforming to a schema. |
| `static final int` | `SYSTEM_PROMPT = 1` System prompts (instructions) to guide the model's behavior. |
| `static final int` | `THINKING_MODE = 2` Thinking mode (reasoning) for complex tasks. |

| ### Public constructors |
|---|
| `Feature()` |

## Constants

### FUNCTION_CALLING

```
public static final int FUNCTION_CALLING = 5
```

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

### PREFIX_CACHING

```
public static final int PREFIX_CACHING = 3
```

Prefix caching (context caching) to optimize inference latency.

### STRUCTURED_OUTPUT

```
public static final int STRUCTURED_OUTPUT = 4
```

Structured JSON output conforming to a schema.

### SYSTEM_PROMPT

```
public static final int SYSTEM_PROMPT = 1
```

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

### THINKING_MODE

```
public static final int THINKING_MODE = 2
```

Thinking mode (reasoning) for complex tasks.

## Public constructors

### Feature

```
public Feature()
```