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

Function getCatalog

server/src/training-agent/task-handlers.ts:530–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

528let cachedProposals: import('@adcp/client').Proposal[] | null = null;
529
530function getCatalog(): CatalogProduct[] {
531 if (!cachedCatalog) cachedCatalog = buildCatalog();
532 return cachedCatalog;
533}
534
535function getProposals(): import('@adcp/client').Proposal[] {
536 if (!cachedProposals) cachedProposals = buildProposals(getCatalog());

Callers 5

getProposalsFunction · 0.85
handleGetProductsFunction · 0.85
handleCreateMediaBuyFunction · 0.85
handleUpdateMediaBuyFunction · 0.85

Calls 1

buildCatalogFunction · 0.85

Tested by

no test coverage detected