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

Method with_system_prompt

crates/opencode-agent/src/agent.rs:404–407  ·  view source on GitHub ↗
(mut self, prompt: impl Into<String>)

Source from the content-addressed store, hash-verified

402 }
403
404 pub fn with_system_prompt(mut self, prompt: impl Into<String>) -> Self {
405 self.system_prompt = Some(prompt.into());
406 self
407 }
408
409 pub fn with_temperature(mut self, temp: f32) -> Self {
410 self.temperature = Some(temp);

Callers 2

run_chat_sessionFunction · 0.45
generate_agent_responseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected