Microsoft Azure · Schema

chatCompletionResponseMessage

A chat completion message generated by the model.

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Properties

Name Type Description
role object
content string The contents of the message.
tool_calls array The tool calls generated by the model, such as function calls.
function_call object
context object
View JSON Schema on GitHub

JSON Schema

microsoft-azure-chatcompletionresponsemessage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/chatCompletionResponseMessage",
  "title": "chatCompletionResponseMessage",
  "type": "object",
  "description": "A chat completion message generated by the model.",
  "properties": {
    "role": {
      "$ref": "#/components/schemas/chatCompletionResponseMessageRole"
    },
    "content": {
      "type": "string",
      "description": "The contents of the message.",
      "nullable": true
    },
    "tool_calls": {
      "type": "array",
      "description": "The tool calls generated by the model, such as function calls.",
      "items": {
        "$ref": "#/components/schemas/chatCompletionMessageToolCall"
      }
    },
    "function_call": {
      "$ref": "#/components/schemas/chatCompletionFunctionCall"
    },
    "context": {
      "$ref": "#/components/schemas/azureChatExtensionsMessageContext"
    }
  }
}