Registry / llm-agents / langchain-core

langchain-core

JSON →
library1.6.0pypypi✓ verified 25d ago

LangChain Core is a Python library designed to facilitate the development of applications using Large Language Models (LLMs) through composability. The current version is 1.2.23, and it follows a regular release cadence with frequent updates and improvements.

pip install langchain-core
INSTALL
IMPORT
SIG · LANGCHAIN-CORE
L
langchain-core
llm-agentspythonv1.6.0
Install
8.0s avg
Import
301ms
Disk
71MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.312s · 68.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.0s · import 0.290s · 77MB
71MB installed
● package 71MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VERSION
from langchain_core import VERSION
from langchain_core import SomeClass
surface_langchain_beta_warnings
from langchain_core import surface_langchain_beta_warnings
from langchain_core import SomeClass
surface_langchain_deprecation_warnings
from langchain_core import surface_langchain_deprecation_warnings
from langchain_core import SomeClass

A basic example demonstrating how to initialize and use a class from langchain_core.

import os from langchain_core import SomeClass # Initialize the class with necessary parameters some_instance = SomeClass(param1=os.environ.get('PARAM1'), param2=os.environ.get('PARAM2')) # Use the instance to perform tasks result = some_instance.perform_task() print(result)
Debug
Known issues
breakingDeprecation of Pydantic 1.x support
fix
Upgrade to Pydantic 2.x to maintain compatibility.
affects: 1.2.0 to 1.2.22
gotchaImport paths have changed in recent versions
fix
Update import statements to reflect the new module structure.
affects: 1.2.0 to 1.2.23
Upgrade
Version history
1.6.0latest on PyPI · released Aug 19, 2026
Audit
Dependencies
requestsrequiredHTTP library for making requests
Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
1
Resources
langchain-core — pip install langchain-core · libregistry