Function: formatContextBlocksAsText()
Makaio Framework / ai-adapters-core / formatContextBlocksAsText
Function: formatContextBlocksAsText()
Section titled “Function: formatContextBlocksAsText()”formatContextBlocksAsText(
blocks):string
Defined in: ../../../adapters/core/src/utils/serializeTurnContext.ts:276
Format serialized context blocks as XML-tagged text. Convenience for adapters that prepend context as plain text to the user message.
Parameters
Section titled “Parameters”blocks
Section titled “blocks”Blocks from serializeTurnContext()
Returns
Section titled “Returns”string
Single string with each block wrapped in XML tags, separated by newlines. Empty string when no blocks.