| 11 | |
| 12 | #[derive(Debug, thiserror::Error)] |
| 13 | pub enum AgentError { |
| 14 | #[error("Provider error: {0}")] |
| 15 | ProviderError(String), |
| 16 | |
| 17 | #[error("Tool error: {0}")] |
| 18 | ToolError(String), |
| 19 | |
| 20 | #[error("Max steps exceeded")] |
| 21 | MaxStepsExceeded, |
| 22 | |
| 23 | #[error("No provider available")] |
| 24 | NoProvider, |
| 25 | |
| 26 | #[error("Invalid response")] |
| 27 | InvalidResponse, |
| 28 | } |
| 29 | |
| 30 | pub struct AgentExecutor { |
| 31 | agent: AgentInfo, |
nothing calls this directly
no outgoing calls
no test coverage detected