MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / system_reminder

Method system_reminder

crates/opencode-session/src/system.rs:23–25  ·  view source on GitHub ↗

Wrap arbitrary text in a ` ` block so it is treated as injected runtime context, not user-authored content.

(content: &str)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected