---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/ollama/types/interfaces/OllamaMessage.md
description: >-
  A native Ollama chat message. Flat shape: `content` is always a string; image
  attachments ride in a separate base64 `images[]` array (no content blocks);
  `thinking` carries reasoning; a tool-role result message labels its origin
  with `tool_name` (NOT a `tool_call_id`).
---

# Interface: OllamaMessage

Defined in: [src/batteries/llm/ollama/types.ts:158](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L158)

A native Ollama chat message. Flat shape: `content` is always a string; image attachments ride
in a separate base64 `images[]` array (no content blocks); `thinking` carries reasoning; a
tool-role result message labels its origin with `tool_name` (NOT a `tool_call_id`).

## Properties

| Property                                       | Type                                                | Description                                                        | Defined in                                                                                                                          |
| ---------------------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
|  `content`        | `string`                                            | Flat text body of the message (never a content-block array).       | [src/batteries/llm/ollama/types.ts:162](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L162) |
|  `images?`         | `string`\[]                                          | Base64-encoded image attachments, sent out-of-band from `content`. | [src/batteries/llm/ollama/types.ts:166](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L166) |
|  `role`              | `"user"` | `"assistant"` | `"tool"` | `"system"` | Author role of the message.                                        | [src/batteries/llm/ollama/types.ts:160](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L160) |
|  `thinking?`     | `string`                                            | Reasoning/thinking text emitted by thinking-capable models.        | [src/batteries/llm/ollama/types.ts:164](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L164) |
|  `tool_calls?` | [`OllamaToolCall`](OllamaToolCall.md)\[]             | Tool calls the model emitted on this (assistant) message.          | [src/batteries/llm/ollama/types.ts:168](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L168) |
|  `tool_name?`   | `string`                                            | Name of the tool a tool-role result message corresponds to.        | [src/batteries/llm/ollama/types.ts:170](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/ollama/types.ts#L170) |
