| 163 | |
| 164 | #[derive(Debug, thiserror::Error)] |
| 165 | pub enum AgentError { |
| 166 | #[error("Provider error: {0}")] |
| 167 | ProviderError(#[from] opencode_provider::ProviderError), |
| 168 | |
| 169 | #[error("Failed to parse generated config: {0}")] |
| 170 | ParseError(String), |
| 171 | |
| 172 | #[error("No default model available")] |
| 173 | NoDefaultModel, |
| 174 | } |
| 175 | |
| 176 | impl AgentInfo { |
| 177 | pub fn from_builtin(builtin: BuiltinAgent) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected