Wrap arbitrary text in a ` ` block so it is treated as injected runtime context, not user-authored content.
(content: &str)
| 21 | /// Wrap arbitrary text in a `<system-reminder>` block so it is treated as |
| 22 | /// injected runtime context, not user-authored content. |
| 23 | pub fn system_reminder(content: &str) -> String { |
| 24 | format!("<system-reminder>\n{}\n</system-reminder>", content.trim()) |
| 25 | } |
| 26 | |
| 27 | /// Build a system-reminder block for MCP resource text content. |
| 28 | pub fn mcp_resource_reminder(filename: &str, uri: &str, content: &str) -> String { |
nothing calls this directly
no outgoing calls
no test coverage detected