Skip to main content

PromptInput

interface

What prompt needs: a name, a one-line description, and the text.

interface PromptInput

Import

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

Members3

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.

name
string

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

Notes

category
Authoring