Documentation
¶
Overview ¶
Package memory extracts the reserved <memory>...</memory> writeback block from an LLM's output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
Extract returns (publishedOutput, memoryContent, found). When multiple blocks are present, the last one is chosen. All blocks are stripped from the published output.
func ExtractOutputBlocks ¶
ExtractOutputBlocks extracts named <output name="...">...</output> blocks. Returns a map of name→content and the remaining text with all output blocks stripped. If no blocks are present, the original text is returned as remaining with an empty map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.