LangChain Core Library
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.
Warnings
- breaking Deprecation of Pydantic 1.x support
- gotcha Import paths have changed in recent versions
Install
-
pip install langchain-core
Imports
- SomeClass
from langchain_core import SomeClass
Quickstart
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)