Skip to main content

Module markers

Module markers 

Source
Expand description

Universal XML marker resolution for <aap:target>.

All formats use <aap:target id="..."> / </aap:target> markers. The aap: namespace prefix is uniquely identifiable and LLMs follow XML tags reliably. JSON uses pointer addressing instead.

Functions§

extract_targets
Extract all target IDs from artifact content by scanning for <aap:target id="..."> markers.
find_target_range
Find the byte range of a target’s content within a string.
find_target_range_inclusive
Find the byte range of a target including its markers.
markers_for
Build start and end markers for a target ID.