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."
}