Skip to content

Function: formatContextBlockAsText()

Makaio Framework


Makaio Framework / ai-adapters-core / formatContextBlockAsText

formatContextBlockAsText(tag, content): string

Defined in: ../../../adapters/core/src/utils/serializeTurnContext.ts:43

Format one context block as an XML-tagged text block.

string

Block tag name (sanitized before rendering)

string

Block content (XML-escaped before rendering)

string

XML-tagged text block safe for prompt injection