langchain-rust 7.0.0

LangChain for Rust, the easiest way to write LLM-based programs in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use regex::Error as RegexError;
use thiserror::Error;

#[derive(Error, Debug)]
#[non_exhaustive]
pub enum OutputParserError {
    #[error("Regex error: {0}")]
    RegexError(#[from] RegexError),

    #[error("Parsing error: {0}")]
    ParsingError(String),
}