Skip to content
1 min read · 48 words

Variable: defaultResolveMedia

ts
const defaultResolveMedia: MediaResolverFn;

Defined in: src/batteries/media/forge.ts:91

The default media resolver: scan ctx.turnMessages[].attachments, then ctx.turnToolCalls[].results, for a Media with the given id.

Param

ctx

The dispatch context.

Param

mediaId

The id to find.

Returns

The Media, or undefined when nothing in the turn carries that id.