PromptTemplateItem

Updated at:

Parameter

Type

Description

Example

object

The prompt message template item, including the message role and content that supports variable placeholders.

{"role":"user","content":"Please answer: {{question}}"}

role

string

The role: system/user/assistant.

user

content

string

The content, which supports {{variable name}} placeholders.

Please answer: {{question}}