Create a new prompt.
| Name | Type | Description |
|---|---|---|
promptIdentifier* | string | The identifier for the new prompt. Can be in the format:
|
options | __type | Optional configuration for the prompt |
// Create a private prompt
const prompt = await client.createPrompt("my-new-prompt", {
description: "A prompt for translations",
tags: ["translation", "language"]
});
// Create a public prompt
const publicPrompt = await client.createPrompt("my-public-prompt", {
description: "A public translation prompt",
isPublic: true
});