---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/ollama/helpers/variables/defaultRenderOllamaTimelineMessage.md
description: >-
  Default timeline-message renderer; alias of {@link
  renderOllamaTimelineMessage}.
---

# Variable: defaultRenderOllamaTimelineMessage

```ts
const defaultRenderOllamaTimelineMessage: (input: {
  message: Message;
  selfIdentity: string;
  unsupportedMediaPolicy: UnsupportedMediaPolicy;
  warn?: (msg: string) => void;
}) => Promise<OllamaMessage> = renderOllamaTimelineMessage;
```

Defined in: [batteries/llm/ollama/helpers.ts:323](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/ollama/helpers.ts#L323)

Default timeline-message renderer; alias of [renderOllamaTimelineMessage](../functions/renderOllamaTimelineMessage.md).

Renders a single timeline [@nhtio/adk!Message](../../../../../common/classes/Message.md) into a native Ollama message — flattening any
media into the base64 `images[]` array, surfacing reasoning as `thinking`, and wrapping textual
bodies in the appropriate trust envelope.

## Parameters

| Parameter                      | Type                                                                                                                                                                                                                                                                         |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input`                        | { `message`: [`Message`](../../../../../common/classes/Message.md); `selfIdentity`: `string`; `unsupportedMediaPolicy`: [`UnsupportedMediaPolicy`](../../../openai_chat_completions/types/type-aliases/UnsupportedMediaPolicy.md); `warn?`: (`msg`: `string`) => `void`; } |
| `input.message`                | [`Message`](../../../../../common/classes/Message.md)                                                                                                                                                                                                                        |
| `input.selfIdentity`           | `string`                                                                                                                                                                                                                                                                     |
| `input.unsupportedMediaPolicy` | [`UnsupportedMediaPolicy`](../../../openai_chat_completions/types/type-aliases/UnsupportedMediaPolicy.md)                                                                                                                                                                    |
| `input.warn?`                  | (`msg`: `string`) => `void`                                                                                                                                                                                                                                                  |

## Returns

`Promise`<[`OllamaMessage`](../../types/interfaces/OllamaMessage.md)>
