PromptModel

6 Jul 20261 minute to read

Interface for a class Prompt

Properties

attachedFiles FileInfo[]

Specifies the list of files attached within the AI assist view.
This property accepts an array of FileInfo objects that represent the files to be attached.
By providing these files, they will be rendered during the initial rendering of the component.

blocks ResponseBlock[]

Specifies the list of block responses within the AI assist view.
This property accepts an array of ResponseBlock objects that represent the response to be added.
By providing these blocks, the response will be rendered as tool, text or thinking block.

isResponseHelpful boolean

Indicates if the response is considered helpful.
Represents the state of whether the generated response is useful or not.

prompt string

Specifies the prompt text.
Represents the text used for prompting user input.

regeneratedResponses string[]

Optional list of regenerated responses.
When provided, response navigation will be enabled.

response string

Specifies the response associated with the prompt.
Represents the text that provides the response to the prompt.