Shared types for the langchainrust workspace.
This crate contains types that are needed by multiple sub-crates, breaking circular dependencies:
-
Tool types (
ToolCall,FunctionCall,ToolCallResult): needed by bothlc-schema(Message uses ToolCall) andlc-core(tool definitions). -
Document types (
Document,VectorDocument,SearchResult,ChunkDocument): needed by bothlc-vector-storesandlc-rag. -
Splitter types (
TextSplitter,RecursiveCharacterSplitter): needed by bothlc-vector-storesandlc-rag.