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

# ~~Function: generatePrompt()~~

> **generatePrompt**(`spec`: [`PromptSpec`](/next/api/genui/openui/core/interfaces/PromptSpec.md)): `string`

## Parameters

| Parameter | Type                                                                 |
| --------- | -------------------------------------------------------------------- |
| `spec`    | [`PromptSpec`](/next/api/genui/openui/core/interfaces/PromptSpec.md) |

## Returns

`string`

## Deprecated

Use [generateSystemPrompt](https://www.npmjs.com/package/@openuidev/lang-core).
