()
| 214 | } |
| 215 | |
| 216 | pub fn plan() -> Self { |
| 217 | Self { |
| 218 | name: "plan".to_string(), |
| 219 | description: Some("Plan mode. Disallows all edit tools.".to_string()), |
| 220 | mode: AgentMode::Primary, |
| 221 | model: None, |
| 222 | model_preference: None, |
| 223 | system_prompt: Some("You are a planning assistant. Analyze the task and create a detailed plan before execution.".to_string()), |
| 224 | temperature: Some(0.3), |
| 225 | top_p: None, |
| 226 | max_tokens: Some(8192), |
| 227 | max_steps: Some(50), |
| 228 | allowed_tools: Vec::new(), |
| 229 | options: HashMap::new(), |
| 230 | permission: build_agent_ruleset("plan", &[]), |
| 231 | hidden: false, |
| 232 | native: true, |
| 233 | variant: None, |
| 234 | color: None, |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | pub fn general() -> Self { |
| 239 | Self { |
nothing calls this directly
no test coverage detected