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

Function buildHtmlAssets

server/src/training-agent/task-handlers.ts:3111–3116  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

3109}
3110
3111function buildHtmlAssets(html: string): AdcpCreativeManifest['assets'] {
3112 // HTMLAsset in @adcp/client ≥5.10 has `asset_type: 'html'` as a required
3113 // discriminator. Without it the union resolves ambiguously to MarkdownAsset
3114 // and tsc fails build.
3115 return { serving_tag: { asset_type: 'html', content: html } };
3116}
3117
3118export async function handleBuildCreative(args: ToolArgs, ctx: TrainingContext): Promise<BuildCreativeResponse & { pricing_option_id?: string; vendor_cost?: number; currency?: string; consumption?: Record<string, unknown>; governance_context?: string }> {
3119 const req = args as unknown as BuildCreativeArgs;

Callers 1

handleBuildCreativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected