Helicone · Schema
ChatCompletionMessage
A chat completion message generated by the model.
AI GatewaysAI MonitoringGatewaysLLM ObservabilityLLM RoutingPrompt Management
Properties
| Name | Type | Description |
|---|---|---|
| content | string | The contents of the message. |
| refusal | string | The refusal message generated by the model. |
| role | string | The role of the author of this message. |
| annotations | array | Annotations for the message, when applicable, as when using the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). |
| audio | object | If the audio output modality is requested, this object contains data about the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio). |
| function_call | object | |
| tool_calls | array | The tool calls generated by the model, such as function calls. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ChatCompletionMessage",
"title": "ChatCompletionMessage",
"description": "A chat completion message generated by the model.",
"properties": {
"content": {
"type": "string",
"nullable": true,
"description": "The contents of the message."
},
"refusal": {
"type": "string",
"nullable": true,
"description": "The refusal message generated by the model."
},
"role": {
"type": "string",
"enum": [
"assistant"
],
"nullable": false,
"description": "The role of the author of this message."
},
"annotations": {
"items": {
"$ref": "#/components/schemas/ChatCompletionMessage.Annotation"
},
"type": "array",
"description": "Annotations for the message, when applicable, as when using the\n[web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat)."
},
"audio": {
"allOf": [
{
"$ref": "#/components/schemas/ChatCompletionAudio"
}
],
"nullable": true,
"description": "If the audio output modality is requested, this object contains data about the\naudio response from the model.\n[Learn more](https://platform.openai.com/docs/guides/audio)."
},
"function_call": {
"allOf": [
{
"$ref": "#/components/schemas/ChatCompletionMessage.FunctionCall"
}
],
"nullable": true,
"deprecated": true
},
"tool_calls": {
"items": {
"$ref": "#/components/schemas/ChatCompletionMessageToolCall"
},
"type": "array",
"description": "The tool calls generated by the model, such as function calls."
}
},
"required": [
"content",
"refusal",
"role"
],
"type": "object",
"additionalProperties": false
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/helicone-chatcompletionmessage"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.