Skip to content
pubscout

langchain_core

0.5.0, released 3 months ago by langchaindart.dev

Core abstractions and LangChain Expression Language for LangChain.dart.

WASM-ready
$ flutter pub add langchain_core
Source repository

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 documented

Alternatives

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.

  • ollama_dart

    Type‑safe Dart client for Ollama’s chat, generation, embeddings, audio and model management APIs.

  • anthropic_sdk_dart

    Dart client for the Anthropic API with streaming and tool support

  • googleai_dart

    Unofficial Dart client for Google AI Gemini, Vertex AI Gemini, and Live API WebSockets.

Works with

Packages commonly used together with langchain_core: ones it builds on, ones built on it, and its own family.