MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / mediaToolResult

Function mediaToolResult

common/src/util/messages.ts:479–491  ·  view source on GitHub ↗
(params: {
  data: string
  mediaType: string
})

Source from the content-addressed store, hash-verified

477}
478
479export function mediaToolResult(params: {
480 data: string
481 mediaType: string
482}): [Extract<ToolResultOutput, { type: 'media' }>] {
483 const { data, mediaType } = params
484 return [
485 {
486 type: 'media',
487 data,
488 mediaType,
489 },
490 ]
491}

Callers 1

messages.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected