Interface: SpecialistMediaLike
Defined in: src/batteries/specialists/_shared/index.ts:37
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 |
Methods
asBytes()
ts
asBytes(): Promise<Uint8Array<ArrayBufferLike>>;Defined in: src/batteries/specialists/_shared/index.ts:41
Resolves the media's raw bytes.
Returns
Promise<Uint8Array<ArrayBufferLike>>