Function: formatContextBlockAsText()
Makaio Framework / ai-adapters-core / formatContextBlockAsText
Function: formatContextBlockAsText()
Section titled “Function: formatContextBlockAsText()”formatContextBlockAsText(
tag,content):string
Defined in: ../../../adapters/core/src/utils/serializeTurnContext.ts:43
Format one context block as an XML-tagged text block.
Parameters
Section titled “Parameters”string
Block tag name (sanitized before rendering)
content
Section titled “content”string
Block content (XML-escaped before rendering)
Returns
Section titled “Returns”string
XML-tagged text block safe for prompt injection