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

Method system

crates/opencode-provider/src/message.rs:197–204  ·  view source on GitHub ↗
(content: impl Into<String>)

Source from the content-addressed store, hash-verified

195 }
196
197 pub fn system(content: impl Into<String>) -> Self {
198 Self {
199 role: Role::System,
200 content: Content::Text(content.into()),
201 cache_control: None,
202 provider_options: None,
203 }
204 }
205
206 pub fn with_cache_control(mut self, cache_control: CacheControl) -> Self {
207 self.cache_control = Some(cache_control);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected