---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/specialists/_shared/interfaces/SpecialistMediaLike.md
description: >-
  Structural duck-type of core `Media`: the exact shape a specialist adapter
  reads off a media value — its declared MIME type, and an async accessor for
  its raw bytes.
---

# Interface: SpecialistMediaLike

Defined in: [src/batteries/specialists/\_shared/index.ts:37](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/specialists/_shared/index.ts#L37)

Structural duck-type of core `Media`: the exact shape a specialist adapter reads off a media
value — its declared MIME type, and an async accessor for its raw bytes.

## Remarks

A real `@nhtio/adk` `Media` instance satisfies this interface structurally (it has both a
`mimeType` string property and an `asBytes(): Promise<Uint8Array>` method), so callers can pass
a `Media` straight through without the specialists domain ever importing the class. See the
module remarks for why this is a deliberate decoupling choice (CONTRIBUTING.md Design Decision
\#13, tier 2).

## Properties

| Property                                  | Type     | Description                                                          | Defined in                                                                                                                                           |
| ----------------------------------------- | -------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `mimeType` | `string` | The media's declared MIME type, e.g. `'image/png'` or `'audio/wav'`. | [src/batteries/specialists/\_shared/index.ts:39](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/specialists/_shared/index.ts#L39) |

## Methods

### asBytes()

```ts
asBytes(): Promise<Uint8Array<ArrayBufferLike>>;
```

Defined in: [src/batteries/specialists/\_shared/index.ts:41](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/specialists/_shared/index.ts#L41)

Resolves the media's raw bytes.

#### Returns

`Promise`<`Uint8Array`<`ArrayBufferLike`>>
