Expand description
Template-mode support for in-place response documents.
Parses <!-- patch:name -->...<!-- /patch:name --> blocks from agent responses
and applies them to the corresponding <!-- agent:name --> components in the document.
Structs§
- Component
Info - Per-component info for plugin rendering.
- Patch
Block - A parsed patch directive from an agent response.
- Template
Info - Template info output for plugins.
Functions§
- apply_
patches - Apply patch blocks to a document’s components.
- apply_
patches_ with_ overrides - Apply patches with per-component mode overrides (e.g., stream mode forces “replace” for cumulative buffers even on append-mode components like exchange).
- parse_
patches - Parse
<!-- patch:name -->...<!-- /patch:name -->blocks from an agent response. - reposition_
boundary_ to_ end - Reposition the boundary marker to the end of the exchange component.
- reposition_
boundary_ to_ end_ with_ summary - Reposition boundary with an optional human-readable summary suffix.
- template_
info - Get template info for a document (for plugin rendering).