# GenerationConfig

# GenerationConfig


```
public final class GenerationConfig
```

<br />

*** ** * ** ***

Configuration parameters to use for content generation.

## Summary

| ### Nested types |
|---|
| `public final class GenerationConfig.Builder` Builder for `GenerationConfig`. |
| `public static class GenerationConfig.Companion` |

| ### Public methods |
|---|---|
| `final @NonNull ModelConfig` | `getModelConfig()` Specifies the desired model to use. |
| `final ExecutorService` | `getWorkerExecutor()` the `ExecutorService` on which background tasks should be run. |

## Public methods

### getModelConfig

```
public final @NonNull ModelConfig getModelConfig()
```

Specifies the desired model to use. Defaults to `ModelConfig.DEFAULT`.

### getWorkerExecutor

```
public final ExecutorService getWorkerExecutor()
```

the `ExecutorService` on which background tasks should be run. If no value is specified, a background thread pool will be used.