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

Method user

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

Source from the content-addressed store, hash-verified

40 }
41
42 pub fn user(content: impl Into<String>) -> Self {
43 Self {
44 role: MessageRole::User,
45 content: content.into(),
46 tool_calls: Vec::new(),
47 }
48 }
49
50 pub fn assistant(content: impl Into<String>) -> Self {
51 Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected