messagesarray<object>ОбязательноУпорядоченная текстовая история диалога для Tencent HY-MT2 Pro (до 256 сообщений).
- По умолчанию
- Не задано
- Ограничения
- minItems:1maxItems:256
messages[].rolestringОбязательно внутри объектаRole of the message author.
- По умолчанию
- Не задано
- Допустимые значения
"system""developer""user""assistant"
messages[].namestringНеобязательноOptional name identifying the speaker within its role.
- По умолчанию
- Не задано
messages[].contentstring | array | nullНеобязательноMessage content, either plain text or a list of content parts.
- По умолчанию
- Не задано
{
"type": [
"string",
"array",
"null"
],
"items": {
"oneOf": [
{
"type": "object",
"required": [
"type",
"text"
],
"properties": {
"text": {
"type": "string"
},
"type": {
"const": "text"
}
}
}
]
},
"description": "Message content, either plain text or a list of content parts."
}