Vue Common Types - Prompt

A prompt for the AI model.

import { Prompt } from "devextreme/common/ai-integration"
Type:

Object

Most AI services support a prompt that contains two fields: system message and user message. The system message directs the AI model, such as "You are a professional assistant." The user message is the user's request, such as "Create a to-do list for today."

system

Direct instructions for the AI model.

Type:

String

user

A user message to the AI model.

Type:

String