python3Packages.langchain-protocol: init at 0.0.12
This commit is contained in:
@@ -36,14 +36,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain-core";
|
||||
version = "1.2.27";
|
||||
version = "1.3.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
tag = "langchain-core==${finalAttrs.version}";
|
||||
hash = "sha256-WdC43SUVgteNQLNMD+yEkD8TyyCFGXkYTi5moZMEmVo=";
|
||||
hash = "sha256-7ugQnVnq/yW/7NVtqkAB1C3+XjLN3m+GQFKtv5uXw9E=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/core";
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
hatchling,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain-protocol";
|
||||
version = "0.0.12";
|
||||
pyproject = true;
|
||||
|
||||
# Not available vis Github yet; required by langchain-core
|
||||
src = fetchPypi {
|
||||
pname = "langchain_protocol";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-XhTENCkKcFyVEP2xqD7PdWGl5uDf0FOTCt6A26BpJp8=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"langchain_protocol"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for the LangChain agent streaming protocol";
|
||||
homepage = "https://pypi.org/project/langchain-protocol";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ sarahec ];
|
||||
};
|
||||
})
|
||||
@@ -8478,6 +8478,8 @@ self: super: with self; {
|
||||
|
||||
langchain-perplexity = callPackage ../development/python-modules/langchain-perplexity { };
|
||||
|
||||
langchain-protocol = callPackage ../development/python-modules/langchain-protocol { };
|
||||
|
||||
langchain-tests = callPackage ../development/python-modules/langchain-tests { };
|
||||
|
||||
langchain-text-splitters = callPackage ../development/python-modules/langchain-text-splitters { };
|
||||
|
||||
Reference in New Issue
Block a user