| 287 | } |
| 288 | |
| 289 | pub fn title() -> Self { |
| 290 | Self { |
| 291 | name: "title".to_string(), |
| 292 | description: Some("Generates concise session titles.".to_string()), |
| 293 | mode: AgentMode::Subagent, |
| 294 | model: None, |
| 295 | model_preference: None, |
| 296 | system_prompt: Some("You are a title generator. Generate a concise 3-5 word title that summarizes the conversation. Return only the title, nothing else.".to_string()), |
| 297 | temperature: Some(0.3), |
| 298 | top_p: None, |
| 299 | max_tokens: Some(1024), |
| 300 | max_steps: Some(1), |
| 301 | allowed_tools: Vec::new(), |
| 302 | options: HashMap::new(), |
| 303 | permission: vec![PermissionRule { |
| 304 | permission: "*".to_string(), |
| 305 | pattern: "*".to_string(), |
| 306 | action: PermissionAction::Deny, |
| 307 | }], |
| 308 | hidden: true, |
| 309 | native: true, |
| 310 | variant: None, |
| 311 | color: None, |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | pub fn summary() -> Self { |
| 316 | Self { |