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

Method new

crates/opencode-agent/src/message.rs:86–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85impl Conversation {
86 pub fn new() -> Self {
87 Self {
88 messages: Vec::new(),
89 }
90 }
91
92 pub fn with_system_prompt(prompt: impl Into<String>) -> Self {
93 let mut conv = Self::new();

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected