ChatMessage
ChatMessage
A chat request. content can be a string, or an array of content parts.
A content part is one of the following:
- :py:class:
TextContentPart <mlflow.types.chat.TextContentPart> - :py:class:
ImageContentPart <mlflow.types.chat.ImageContentPart> - :py:class:
AudioContentPart <mlflow.types.chat.AudioContentPart>
JSON Example
{
"role": "string",
"content": "string",
"tool_calls": [
{
"id": "string",
"type": "string",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"refusal": "string",
"tool_call_id": "string"
}
string
role
Required
role
content
Optional
content
string
refusal
Optional
refusal
string
tool_call_id
Optional
tool_call_id