---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/openai_chat_completions/types/interfaces/ChatCompletionsMessage.md
description: Chat completion message wire object.
---

# Interface: ChatCompletionsMessage

Defined in: [src/batteries/llm/openai\_chat\_completions/types.ts:138](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_chat_completions/types.ts#L138)

Chat completion message wire object.

## Properties

| Property                                           | Type                                                                                                       | Description                                        | Defined in                                                                                                                                                            |
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `content`            | | `string` | [`ChatCompletionsContentBlock`](../type-aliases/ChatCompletionsContentBlock.md)\[] | `null` | The contents of the message.                       | [src/batteries/llm/openai\_chat\_completions/types.ts:146](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_chat_completions/types.ts#L146) |
|  `name?`                 | `string`                                                                                                   | An optional name for the participant.              | [src/batteries/llm/openai\_chat\_completions/types.ts:150](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_chat_completions/types.ts#L150) |
|  `role`                  | `"user"` | `"assistant"` | `"tool"` | `"system"` | `"developer"`                                       | The role of the author of this message.            | [src/batteries/llm/openai\_chat\_completions/types.ts:142](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_chat_completions/types.ts#L142) |
|  `tool_call_id?` | `string`                                                                                                   | Tool call identifier if responding to a tool call. | [src/batteries/llm/openai\_chat\_completions/types.ts:154](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_chat_completions/types.ts#L154) |
|  `tool_calls?`     | [`ChatCompletionsToolCallWire`](ChatCompletionsToolCallWire.md)\[]                                          | The tool calls generated by the model.             | [src/batteries/llm/openai\_chat\_completions/types.ts:158](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/openai_chat_completions/types.ts#L158) |
