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

# Interface: PromptSpec

## Extends

- `BaseSpec`

## Properties

### additionalRules?

> `optional` **additionalRules?**: `string`\[]

***

### bindings?

> `optional` **bindings?**: `boolean`

启用 $variables、@Set、@Reset 和交互式筛选。默认：启用 toolCalls 时为 true。

***

### componentGroups?

> `optional` **componentGroups?**: `ComponentGroup$1`\[]

#### Inherited from

`BaseSpec.componentGroups`

***

### components

> **components**: `Record`\<`string`, [`ComponentPromptSpec`](/next/zh/api/genui/openui/core/interfaces/ComponentPromptSpec.md)>

#### Inherited from

`BaseSpec.components`

***

### editMode?

> `optional` **editMode?**: `boolean`

***

### examples?

> `optional` **examples?**: `string`\[]

通用示例（静态 / 布局类模式）。`examples` 和 `toolExamples` 同时存在时都会包含。

***

### id?

> `optional` **id?**: `string`

#### Inherited from

`BaseSpec.id`

***

### inlineMode?

> `optional` **inlineMode?**: `boolean`

***

### preamble?

> `optional` **preamble?**: `string`

***

### root?

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

#### Inherited from

`BaseSpec.root`

***

### toolCalls?

> `optional` **toolCalls?**: `boolean`

启用 Query()、Mutation()、@Run 和工具工作流。默认：提供了工具时为 true。

***

### toolExamples?

> `optional` **toolExamples?**: `string`\[]

与工具相关的示例（Query/Mutation 模式）。`examples` 和 `toolExamples` 同时存在时都会包含。

***

### tools?

> `optional` **tools?**: (`string` | [`ToolSpec`](/next/zh/api/genui/openui/core/interfaces/ToolSpec.md))\[]
