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

Method system

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

Source from the content-addressed store, hash-verified

32
33impl AgentMessage {
34 pub fn system(content: impl Into<String>) -> Self {
35 Self {
36 role: MessageRole::System,
37 content: content.into(),
38 tool_calls: Vec::new(),
39 }
40 }
41
42 pub fn user(content: impl Into<String>) -> Self {
43 Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected