langchain-rust 7.0.0

LangChain for Rust, the easiest way to write LLM-based programs in Rust
Documentation
//! Output parsers.
//!
//! [`OutputParser`] post-processes a chain's text output (e.g. in
//! `LLMChainBuilder::output_parser`). The typed parsers ([`TypedOutputParser`]) also give
//! the model format instructions and parse into Rust values: [`BooleanParser`],
//! [`CommaSeparatedListParser`], [`RegexParser`], [`StructuredOutputParser`] and
//! [`JsonParser`].
mod output_parser;
pub use output_parser::*;

mod markdown_parser;
pub use markdown_parser::*;

mod simple_parser;
pub use simple_parser::*;

mod error;
pub use error::*;

mod typed;
pub(crate) use typed::strip_reasoning;
pub use typed::TypedOutputParser;

mod boolean_parser;
pub use boolean_parser::BooleanParser;

mod list_parser;
pub use list_parser::CommaSeparatedListParser;

mod regex_parser;
pub use regex_parser::RegexParser;

mod structured_parser;
pub use structured_parser::{ResponseSchema, StructuredOutputParser};

mod json_parser;
pub use json_parser::JsonParser;

#[cfg(test)]
mod tests;