15 langchain-text-splitters,
23 # optional-dependencies
41 buildPythonPackage rec {
46 src = fetchFromGitHub {
47 owner = "langchain-ai";
49 tag = "langchain==${version}";
50 hash = "sha256-lANGoMABH1f9Tl/GgMMr7eTCji9q3uqD+Mwjr4nd2Dg=";
53 sourceRoot = "${src.name}/libs/langchain";
55 build-system = [ poetry-core ];
57 buildInputs = [ bash ];
67 langchain-text-splitters
76 optional-dependencies = {
96 # integration_tests require network access, database access and require `OPENAI_API_KEY`, etc.
102 # These tests have database access
104 "test_sql_database_run"
105 # These tests have network access
106 "test_socket_disabled"
107 "test_openai_agent_with_streaming"
108 "test_openai_agent_tools_agent"
109 # This test may require a specific version of langchain-community
110 "test_compatible_vectorstore_documentation"
112 "test_callback_handlers"
113 "test_generic_fake_chat_model"
115 "test_serializable_mapping"
117 "test_aliases_hidden"
120 disabledTestPaths = [
121 # pydantic.errors.PydanticUserError: `ConversationSummaryMemory` is not fully defined; you should define `BaseCache`, then call `ConversationSummaryMemory.model_rebuild()`.
122 "tests/unit_tests/chains/test_conversation.py"
123 # pydantic.errors.PydanticUserError: `ConversationSummaryMemory` is not fully defined; you should define `BaseCache`, then call `ConversationSummaryMemory.model_rebuild()`.
124 "tests/unit_tests/chains/test_memory.py"
125 # pydantic.errors.PydanticUserError: `ConversationSummaryBufferMemory` is not fully defined; you should define `BaseCache`, then call `ConversationSummaryBufferMemory.model_rebuild()`.
126 "tests/unit_tests/chains/test_summary_buffer_memory.py"
127 "tests/unit_tests/output_parsers/test_fix.py"
128 "tests/unit_tests/chains/test_llm_checker.py"
129 # TypeError: Can't instantiate abstract class RunnableSerializable[RetryOutputParserRetryChainInput, str] without an implementation for abstract method 'invoke'
130 "tests/unit_tests/output_parsers/test_retry.py"
131 # pydantic.errors.PydanticUserError: `LLMSummarizationCheckerChain` is not fully defined; you should define `BaseCache`, then call `LLMSummarizationCheckerChain.model_rebuild()`.
132 "tests/unit_tests/chains/test_llm_summarization_checker.py"
135 pythonImportsCheck = [ "langchain" ];
138 updateScript = langchain-core.updateScript;
142 description = "Building applications with LLMs through composability";
143 homepage = "https://github.com/langchain-ai/langchain";
144 changelog = "https://github.com/langchain-ai/langchain/releases/tag/v${version}";
145 license = lib.licenses.mit;
146 maintainers = with lib.maintainers; [ natsukium ];
147 mainProgram = "langchain-server";