Skip to content

mapPlaceholdersWithIntelligence

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-12-screenshots/agent-screenshot-mapper.ts

Maps screenshot placeholders to exact specs using source code intelligence. In production, the inner mapping would be done by an AI agent with the intelligence injected into its context. For the POC, we use heuristic matching.

Signature

ts
function mapPlaceholdersWithIntelligence(intelligence: SourceCodeIntelligence, docs: DocScreenshotRequest[], siteUrl: string): AgentScreenshotSpec[]

Parameters

NameType
intelligenceSourceCodeIntelligence
docsDocScreenshotRequest[]
siteUrlstring

Returns: AgentScreenshotSpec[]

Was this page helpful?

Download as PDF