MCPcopy Create free account
hub / github.com/anomalyco/opencode / supportsContent

Function supportsContent

packages/llm/src/protocols/shared.ts:291–294  ·  view source on GitHub ↗
(
  part: ContentPart,
  types: ReadonlyArray<Type>,
)

Source from the content-addressed store, hash-verified

289}
290
291export const supportsContent = <const Type extends ContentType>(
292 part: ContentPart,
293 types: ReadonlyArray<Type>,
294): part is Extract<ContentPart, { readonly type: Type }> => (types as ReadonlyArray<ContentType>).includes(part.type)
295
296export const unsupportedContent = (
297 route: string,

Callers 1

shared.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected