messagesarray<object>RequiredOrdered text-only conversation history for Tencent HY-MT2 Pro (up to 256 messages).
- Default
- Not specified
- Constraints
- minItems:1maxItems:256
messages[].rolestringRequired within objectRole of the message author.
- Default
- Not specified
- Allowed values
"system""developer""user""assistant"
messages[].namestringOptionalOptional name identifying the speaker within its role.
- Default
- Not specified
messages[].contentstring | array | nullOptionalMessage content, either plain text or a list of content parts.
- Default
- Not specified
{
"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."
}