(builtin: BuiltinAgent)
| 175 | |
| 176 | impl AgentInfo { |
| 177 | pub fn from_builtin(builtin: BuiltinAgent) -> Self { |
| 178 | match builtin { |
| 179 | BuiltinAgent::Build => Self::build(), |
| 180 | BuiltinAgent::Plan => Self::plan(), |
| 181 | BuiltinAgent::General => Self::general(), |
| 182 | BuiltinAgent::Explore => Self::explore(), |
| 183 | BuiltinAgent::Compaction => Self::compaction(), |
| 184 | BuiltinAgent::Title => Self::title(), |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | pub fn default_agent() -> Self { |
| 189 | Self::general() |
nothing calls this directly
no outgoing calls
no test coverage detected