> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Interface: BuildOpenUiSystemPromptOptions

Options used to customize the generated OpenUI system prompt.

## Extends

- [`CreateOpenUiPromptLibraryOptions`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md)

## Properties

### appendix?

> `optional` **appendix?**: `string`

***

### componentGroups?

> `optional` **componentGroups?**: [`ComponentGroup`](/next/api/genui/openui/core/interfaces/ComponentGroup.md)\[]

Additional groups, or the complete set when defaults are disabled.

#### Inherited from

[`CreateOpenUiPromptLibraryOptions`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md).[`componentGroups`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md#componentgroups)

***

### componentNames?

> `optional` **componentNames?**: readonly `string`\[]

Limit built-ins to these names, retaining the selected root automatically.
Custom components are always appended. Ignored when defaults are disabled.

#### Default Value

```ts
All built-in components.
```

#### Example

```ts
`componentNames: ['Stack', 'Text']`
```

#### Inherited from

[`CreateOpenUiPromptLibraryOptions`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md).[`componentNames`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md#componentnames)

***

### components?

> `optional` **components?**: [`OpenUiPromptComponent`](/next/api/genui/openui/prompt/type-aliases/OpenUiPromptComponent.md)\[]

Additional components, or the complete set when defaults are disabled.

#### Inherited from

[`CreateOpenUiPromptLibraryOptions`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md).[`components`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md#components)

***

### includeDefaultComponents?

> `optional` **includeDefaultComponents?**: `boolean`

Whether to include the built-in components and component groups.

#### Default Value

`true`

#### Inherited from

[`CreateOpenUiPromptLibraryOptions`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md).[`includeDefaultComponents`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md#includedefaultcomponents)

***

### promptOptions?

> `optional` **promptOptions?**: [`PromptOptions`](/next/api/genui/openui/core/interfaces/PromptOptions.md)

***

### root?

> `optional` **root?**: `string`

Root component name; supply its definition when defaults are disabled.

#### Default Value

`'Stack'`

#### Inherited from

[`CreateOpenUiPromptLibraryOptions`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md).[`root`](/next/api/genui/openui/prompt/interfaces/CreateOpenUiPromptLibraryOptions.md#root)
