langchain_core
0.5.0, released 3 months ago by langchaindart.dev
Core abstractions and LangChain Expression Language for LangChain.dart.
What it does
Provides foundational abstractions like language models, document loaders, and vector stores for the LangChain.dart ecosystem. Includes the LangChain Expression Language (LCEL) to compose components into sequences or DAGs.
AI-written summary of version 0.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a framework on top of LangChain.dart
- You need to interoperate with LangChain.dart components
- You want to use LCEL to compose LLM components into sequences or DAGs
Skip it when
- You are looking for ready-to-use provider integrations without writing underlying framework code
- You do not need LLM abstractions or component composition
Strengths
- Modularity with independent abstractions not tied to specific model providers
- Stable versioning scheme with advance notice for breaking changes
- Battle-tested design used in production environments
Weaknesses
- Requires careful migration for breaking changes, such as ordered content blocks in recent updates
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Not documented
not documentedAlternatives
Packages that do the same job and could replace langchain_core.
- openai_dart
Dart and Flutter client for OpenAI REST APIs and realtime WebSocket/WebRTC workflows.
91Compare - ollama_dart
Type‑safe Dart client for Ollama’s chat, generation, embeddings, audio and model management APIs.
88Compare - anthropic_sdk_dart
Dart client for the Anthropic API with streaming and tool support
86Compare - googleai_dart
Unofficial Dart client for Google AI Gemini, Vertex AI Gemini, and Live API WebSockets.
86Compare
Works with
Packages commonly used together with langchain_core: ones it builds on, ones built on it, and its own family.
- cryptolangchain_core depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- asynclangchain_core depends on itUtility classes and helpers that extend Dart's async library.
- rxdartlangchain_core depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- cross_filelangchain_core depends on itAn abstraction to allow working with files across multiple platforms.
- langchainBuilt on langchain_coreA Dart/Flutter library for building LLM‑powered applications with LangChain patterns.
- langchain_openaiBuilt on langchain_coreLangChain.dart integration module for OpenAI APIs.
- langchain_googleBuilt on langchain_coreLangChain.dart integration module for Google AI, Gemini, and VertexAI.