MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / findFormat

Function findFormat

server/tests/unit/creative-agent.test.ts:388–390  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

386 const refFormats = buildReferenceFormats(TEST_AGENT_URL);
387
388 function findFormat(id: string) {
389 return refFormats.find(f => (f.format_id as { id: string }).id === id);
390 }
391
392 it('renders display_image format with image and click URL', () => {
393 const html = renderPreview(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected