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

Method user

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

Source from the content-addressed store, hash-verified

177
178impl Message {
179 pub fn user(content: impl Into<String>) -> Self {
180 Self {
181 role: Role::User,
182 content: Content::Text(content.into()),
183 cache_control: None,
184 provider_options: None,
185 }
186 }
187
188 pub fn assistant(content: impl Into<String>) -> Self {
189 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected