MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / build

Method build

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

Source from the content-addressed store, hash-verified

190 }
191
192 pub fn build() -> Self {
193 Self {
194 name: "build".to_string(),
195 description: Some(
196 "The default agent. Executes tools based on configured permissions.".to_string(),
197 ),
198 mode: AgentMode::Primary,
199 model: None,
200 model_preference: None,
201 system_prompt: None,
202 temperature: None,
203 top_p: None,
204 max_tokens: Some(8192),
205 max_steps: Some(100),
206 allowed_tools: Vec::new(),
207 options: HashMap::new(),
208 permission: build_agent_ruleset("build", &[]),
209 hidden: false,
210 native: true,
211 variant: None,
212 color: None,
213 }
214 }
215
216 pub fn plan() -> Self {
217 Self {

Callers 8

load_wellknownFunction · 0.80
fetch_urlFunction · 0.80
newMethod · 0.80
resolve_tui_base_urlFunction · 0.80
newMethod · 0.80
newMethod · 0.80
executeMethod · 0.80

Calls 2

newFunction · 0.85
build_agent_rulesetFunction · 0.85

Tested by

no test coverage detected