---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/openai_chat_completions/helpers/variables/defaultRenderTimelineMessage.md
description: 'Default timeline-message renderer; alias of [`renderTimelineMessage`](https://adk.nht.io/api/@nhtio/adk/batteries/llm/openai_chat_completions/helpers/functions/renderTimelineMessage).'
---

# Variable: defaultRenderTimelineMessage

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

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

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

Renders a single timeline [@nhtio/adk!Message](../../../../../common/classes/Message.md) into an OpenAI Chat Completions message —
mapping media to content blocks (`image_url` / `input_audio` / `file`), wrapping textual bodies
in the appropriate trust envelope, and applying the unsupported-media policy.

## Parameters

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

## Returns

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