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

Method general

crates/opencode-agent/src/agent.rs:238–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 }
237
238 pub fn general() -> Self {
239 Self {
240 name: "general".to_string(),
241 description: Some("Default general-purpose agent.".to_string()),
242 mode: AgentMode::Primary,
243 model: None,
244 model_preference: None,
245 system_prompt: Some(
246 "You are a helpful assistant. Complete the task given to you.".to_string(),
247 ),
248 temperature: Some(0.7),
249 top_p: None,
250 max_tokens: Some(8192),
251 max_steps: Some(20),
252 allowed_tools: Vec::new(),
253 options: HashMap::new(),
254 permission: build_agent_ruleset("general", &[]),
255 hidden: false,
256 native: true,
257 variant: None,
258 color: None,
259 }
260 }
261
262 pub fn explore() -> Self {
263 Self {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
build_agent_rulesetFunction · 0.85

Tested by

no test coverage detected