ai_agents/error.rs
1#[derive(thiserror::Error, Debug)]
2pub enum Error {
3 #[error("Wrong output type")]
4 WrongOutputType,
5 #[error("Output is empty")]
6 OutputIsEmpty,
7 #[error("Input is required")]
8 InputRequiredError,
9 #[error("{0} not found.")]
10 NotFound(String),
11 #[error(transparent)]
12 SLLMError(#[from] sllm::Error),
13 #[error(transparent)]
14 JsonParsingError(#[from] serde_json::Error),
15}