Get a prompt by its identifier.
| Name | Type | Description |
|---|---|---|
promptIdentifier* | string | The identifier of the prompt. Can be in the format:
|
// Get a private prompt
const prompt = await client.getPrompt("my-prompt");
// Get a public prompt
const publicPrompt = await client.getPrompt("owner/public-prompt");