(html: string)
| 3109 | } |
| 3110 | |
| 3111 | function 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 | |
| 3118 | export 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; |
no outgoing calls
no test coverage detected