ChatCompletionAssistantMessage

CompanyCloudHostingVPSIndia

Properties

Name Type Description
role string
content object
name object
tool_calls object
function_call object
reasoning_content object
cache_control object
thinking_blocks object
reasoning_items object
View JSON Schema on GitHub

JSON Schema

bookmyhost-chat-completion-assistant-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-chat-completion-assistant-message-schema.json",
  "title": "ChatCompletionAssistantMessage",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-chat-completions-api-openapi.yml#/components/schemas/ChatCompletionAssistantMessage",
  "properties": {
    "role": {
      "const": "assistant",
      "title": "Role",
      "type": "string"
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/ChatCompletionTextObject"
              },
              {
                "$ref": "#/$defs/ChatCompletionThinkingBlock"
              },
              {
                "$ref": "#/$defs/ChatCompletionRedactedThinkingBlock"
              },
              {
                "$ref": "#/$defs/ChatCompletionImageObject"
              }
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "tool_calls": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ChatCompletionAssistantToolCall"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Calls"
    },
    "function_call": {
      "anyOf": [
        {
          "$ref": "#/$defs/ChatCompletionToolCallFunctionChunk"
        },
        {
          "type": "null"
        }
      ]
    },
    "reasoning_content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reasoning Content"
    },
    "cache_control": {
      "$ref": "#/$defs/ChatCompletionCachedContent"
    },
    "thinking_blocks": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/ChatCompletionThinkingBlock"
              },
              {
                "$ref": "#/$defs/ChatCompletionRedactedThinkingBlock"
              }
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thinking Blocks"
    },
    "reasoning_items": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ChatCompletionReasoningItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reasoning Items"
    }
  },
  "required": [
    "role"
  ],
  "type": "object",
  "$defs": {
    "ChatCompletionAssistantToolCall": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "type": {
          "const": "function",
          "title": "Type",
          "type": "string"
        },
        "function": {
          "$ref": "#/$defs/ChatCompletionToolCallFunctionChunk"
        }
      },
      "required": [
        "id",
        "type",
        "function"
      ],
      "title": "ChatCompletionAssistantToolCall",
      "type": "object"
    },
    "ChatCompletionCachedContent": {
      "properties": {
        "type": {
          "const": "ephemeral",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "title": "ChatCompletionCachedContent",
      "type": "object"
    },
    "ChatCompletionImageObject": {
      "properties": {
        "type": {
          "const": "image_url",
          "title": "Type",
          "type": "string"
        },
        "image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/ChatCompletionImageUrlObject"
            }
          ],
          "title": "Image Url"
        }
      },
      "required": [
        "type",
        "image_url"
      ],
      "title": "ChatCompletionImageObject",
      "type": "object"
    },
    "ChatCompletionImageUrlObject": {
      "properties": {
        "url": {
          "title": "Url",
          "type": "string"
        },
        "detail": {
          "title": "Detail",
          "type": "string"
        },
        "format": {
          "title": "Format",
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "title": "ChatCompletionImageUrlObject",
      "type": "object"
    },
    "ChatCompletionReasoningItem": {
      "description": "Represents an OpenAI Responses API reasoning item for round-tripping in conversation history.",
      "properties": {
        "type": {
          "const": "reasoning",
          "title": "Type",
          "type": "string"
        },
        "id": {
          "title": "Id",
          "type": "string"
        },
        "encrypted_content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Encrypted Content"
        },
        "summary": {
          "items": {
            "$ref": "#/$defs/ChatCompletionReasoningSummaryTextBlock"
          },
          "title": "Summary",
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "title": "ChatCompletionReasoningItem",
      "type": "object"
    },
    "ChatCompletionReasoningSummaryTextBlock": {
      "properties": {
        "type": {
          "const": "summary_text",
          "title": "Type",
          "type": "string"
        },
        "text": {
          "title": "Text",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "title": "ChatCompletionReasoningSummaryTextBlock",
      "type": "object"
    },
    "ChatCompletionRedactedThinkingBlock": {
      "properties": {
        "type": {
          "const": "redacted_thinking",
          "title": "Type",
          "type": "string"
        },
        "data": {
          "title": "Data",
          "type": "string"
        },
        "cache_control": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "$ref": "#/$defs/ChatCompletionCachedContent"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cache Control"
        }
      },
      "required": [
        "type"
      ],
      "title": "ChatCompletionRedactedThinkingBlock",
      "type": "object"
    },
    "ChatCompletionTextObject": {
      "properties": {
        "type": {
          "const": "text",
          "title": "Type",
          "type": "string"
        },
        "text": {
          "title": "Text",
          "type": "string"
        },
        "cache_control": {
          "$ref": "#/$defs/ChatCompletionCachedContent"
        }
      },
      "required": [
        "type",
        "text"
      ],
      "title": "ChatCompletionTextObject",
      "type": "object"
    },
    "ChatCompletionThinkingBlock": {
      "properties": {
        "type": {
          "const": "thinking",
          "title": "Type",
          "type": "string"
        },
        "thinking": {
          "title": "Thinking",
          "type": "string"
        },
        "signature": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signature"
        },
        "cache_control": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "$ref": "#/$defs/ChatCompletionCachedContent"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cache Control"
        }
      },
      "required": [
        "type"
      ],
      "title": "ChatCompletionThinkingBlock",
      "type": "object"
    },
    "ChatCompletionToolCallFunctionChunk": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "arguments": {
          "title": "Arguments",
          "type": "string"
        },
        "provider_specific_fields": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider Specific Fields"
        }
      },
      "title": "ChatCompletionToolCallFunctionChunk",
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bookmyhost-chat-completion-assistant-message"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.