rig-core 0.35.0

An opinionated library for building LLM powered applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::error::Error;

use epub::doc::DocError;

use crate::loaders::file::FileLoaderError;

#[derive(thiserror::Error, Debug)]
pub enum EpubLoaderError {
    #[error("IO error: {0}")]
    EpubError(#[from] DocError),

    #[error("File loader error: {0}")]
    FileLoaderError(#[from] FileLoaderError),

    #[error("Text processor error: {0}")]
    TextProcessorError(#[from] Box<dyn Error>),
}