Skip to content

Prompt

Prompts provide callbacks into the Program’s execution. A given prompt will only execute once during a Program’s execution. After a Prompt’s assistant callback is called, it becomes an Instruction as part of the program’s execution.

Properties

assistant

assistant: (response) => string

Parameters

response: ChatModelResponse

Returns

string


system?

system?: string


user?

user?: string


Generated using typedoc-plugin-markdown and TypeDoc