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

Function get_available_agents

crates/opencode-tool/src/task.rs:176–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176fn get_available_agents() -> Vec<AgentInfo> {
177 vec![
178 AgentInfo {
179 name: "general".to_string(),
180 model: None,
181 can_use_task: false,
182 },
183 AgentInfo {
184 name: "explore".to_string(),
185 model: None,
186 can_use_task: false,
187 },
188 AgentInfo {
189 name: "plan".to_string(),
190 model: None,
191 can_use_task: false,
192 },
193 AgentInfo {
194 name: "title".to_string(),
195 model: None,
196 can_use_task: false,
197 },
198 AgentInfo {
199 name: "summary".to_string(),
200 model: None,
201 can_use_task: false,
202 },
203 AgentInfo {
204 name: "compaction".to_string(),
205 model: None,
206 can_use_task: false,
207 },
208 AgentInfo {
209 name: "build".to_string(),
210 model: None,
211 can_use_task: true,
212 },
213 ]
214}
215
216fn get_disabled_tools(
217 agent: Option<&AgentInfo>,

Callers 1

get_agentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected