langchainrust 0.2.18

A LangChain-inspired framework for building LLM applications in Rust. Supports OpenAI, Agents, Tools, Memory, Chains, RAG, BM25, Hybrid Retrieval, LangGraph, HyDE, Reranking, MultiQuery, and native Function Calling.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Output parsers for extracting and transforming LLM response text.
//!
//! This module provides parser implementations that convert raw LLM output
//! into structured formats. Each parser implements the `Runnable` trait
//! for composability with other LCEL components.

mod base;
mod str_parser;
mod list_parser;
mod json_parser;
mod structured_parser;

pub use base::{BaseOutputParser, OutputParserError, OutputParserResult};
pub use str_parser::StrOutputParser;
pub use list_parser::CommaSeparatedListOutputParser;
pub use json_parser::JsonOutputParser;
pub use structured_parser::{StructuredOutputParser, TypedOutputParser};