> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# DynamicMediaSource<T>

> Type alias exported by @botmesh/core.

```ts theme={null}
type DynamicMediaSource<T> = (ctx, c) => T | Promise<T>;
```

Defined in: [flows/media.ts:63](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/media.ts#L63)

A source computed at runtime from the message and the conversation controls.

## Type Parameters

| Type Parameter |
| - |
|  `T` |

## Parameters

| Parameter | Type |
| - | - |
| `ctx` | [`RuntimeMessage`](https://botmesh.afaya.com.co/api/core/interfaces/RuntimeMessage) |
| `c` | [`ConversationControls`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationControls) |

## Returns

`T` | `Promise`\<`T`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.