Skip to main content

Prompt

interface

A named block of prompt text, as returned by prompt.

interface Prompt

Import

import { Prompt } from '@modular/sdk';

Members4

content
string

The text inserted into the composer. prompt removes the common indentation and surrounding whitespace, so multiline template literals can follow the surrounding TypeScript indentation.

description
string

One line telling the user what inserting this will do.

kind
'prompt'
name
string

Short identifier, also what the user sees when picking the prompt.

Notes

category
Authoring