The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
cli updates 2 (#12447)
Erick Friis38cee5fae0ce
diff --git a/libs/cli/README.md b/libs/cli/README.mdindex 72e0baa5ce..b8b1705d71 100644--- a/libs/cli/README.md+++ b/libs/cli/README.md@@ -1,54 +1,5 @@# langchain-cli-Install CLI+[Docs](./DOCS.md)-`pip install -U --pre langchain-cli`--Create new langchain app--`langchain serve new my-app`--Go into app--`cd my-app`--Install a package--`langchain serve add extraction-openai-functions`--Install langserve--`pip install "langserve[all]"`--Install the langchain package--`pip install -e packages/extraction-openai-functions`--Edit `app/server.py` to add that package to the routes--```markdown-from fastapi import FastAPI-from langserve import add_routes-from extraction_summary.chain import chain--app = FastAPI()--add_routes(app, chain)-```--Set env vars--```shell-export OPENAI_API_KEY=...-```--```shell-export LANGCHAIN_TRACING_V2=true-export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"-export LANGCHAIN_API_KEY="<your-api-key>"-export LANGCHAIN_PROJECT="extraction-openai-functions"-```--Run the app--`python app/server.py`+[LangServe Templates Quickstart](../../templates/README.md)diff --git a/libs/cli/langchain_cli/namespaces/hub.py b/libs/cli/langchain_cli/namespaces/hub.pyindex 9ac4a81635..27a70c6656 100644--- a/libs/cli/langchain_cli/namespaces/hub.py+++ b/libs/cli/langchain_cli/namespaces/hub.py@@ -95,6 +95,7 @@ def start(command = ["uvicorn",+ "--factory","langchain_cli.dev_scripts:create_demo_server","--reload","--port",diff --git a/libs/cli/poetry.lock b/libs/cli/poetry.lockindex d2c9a8b6ee..b57a93982e 100644--- a/libs/cli/poetry.lock+++ b/libs/cli/poetry.lock@@ -4,7 +4,7 @@name = "aiohttp"version = "3.8.6"description = "Async http client/server framework (asyncio)"-optional = false+optional = truepython-versions = ">=3.6"files = [{file = "aiohttp-3.8.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:41d55fc043954cddbbd82503d9cc3f4814a40bcef30b3569bc7b5e34130718c1"},@@ -112,7 +112,7 @@ speedups = ["Brotli", "aiodns", "cchardet"]name = "aiosignal"version = "1.3.1"description = "aiosignal: a list of registered asynchronous callbacks"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"},@@ -147,7 +147,7 @@ trio = ["trio (<0.22)"]name = "async-timeout"version = "4.0.3"description = "Timeout context manager for asyncio programs"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"},@@ -158,7 +158,7 @@ files = [name = "attrs"version = "23.1.0"description = "Classes Without Boilerplate"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"},@@ -176,7 +176,7 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytename = "certifi"version = "2023.7.22"description = "Python package for providing Mozilla's CA Bundle."-optional = false+optional = truepython-versions = ">=3.6"files = [{file = "certifi-2023.7.22-py3-none-any.whl", hash = "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"},@@ -187,7 +187,7 @@ files = [name = "charset-normalizer"version = "3.3.1"description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."-optional = false+optional = truepython-versions = ">=3.7.0"files = [{file = "charset-normalizer-3.3.1.tar.gz", hash = "sha256:d9137a876020661972ca6eec0766d81aef8a5627df628b664b234b73396e727e"},@@ -311,7 +311,7 @@ files = [name = "dataclasses-json"version = "0.6.1"description = "Easily serialize dataclasses to and from JSON."-optional = false+optional = truepython-versions = ">=3.7,<4.0"files = [{file = "dataclasses_json-0.6.1-py3-none-any.whl", hash = "sha256:1bd8418a61fe3d588bb0079214d7fb71d44937da40742b787256fd53b26b6c80"},@@ -370,7 +370,7 @@ all = ["email-validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)"name = "frozenlist"version = "1.4.0"description = "A list-like structure which implements collections.abc.MutableSequence"-optional = false+optional = truepython-versions = ">=3.8"files = [{file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:764226ceef3125e53ea2cb275000e309c0aa5464d43bd72abd661e27fffc26ab"},@@ -471,7 +471,7 @@ test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "prename = "greenlet"version = "3.0.1"description = "Lightweight in-process concurrent programming"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "greenlet-3.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f89e21afe925fcfa655965ca8ea10f24773a1791400989ff32f467badfe4a064"},@@ -552,7 +552,7 @@ files = [name = "httpcore"version = "0.18.0"description = "A minimal low-level HTTP client."-optional = false+optional = truepython-versions = ">=3.8"files = [{file = "httpcore-0.18.0-py3-none-any.whl", hash = "sha256:adc5398ee0a476567bf87467063ee63584a8bce86078bf748e48754f60202ced"},@@ -573,7 +573,7 @@ socks = ["socksio (==1.*)"]name = "httpx"version = "0.25.0"description = "The next generation HTTP client."-optional = false+optional = truepython-versions = ">=3.8"files = [{file = "httpx-0.25.0-py3-none-any.whl", hash = "sha256:181ea7f8ba3a82578be86ef4171554dd45fec26a02556a744db029a0a27b7100"},@@ -592,6 +592,17 @@ cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"]http2 = ["h2 (>=3,<5)"]socks = ["socksio (==1.*)"]+[[package]]+name = "httpx-sse"+version = "0.3.1"+description = "Consume Server-Sent Event (SSE) messages with HTTPX."+optional = true+python-versions = ">=3.7"+files = [+ {file = "httpx-sse-0.3.1.tar.gz", hash = "sha256:3bb3289b2867f50cbdb2fee3eeeefecb1e86653122e164faac0023f1ffc88aea"},+ {file = "httpx_sse-0.3.1-py3-none-any.whl", hash = "sha256:7376dd88732892f9b6b549ac0ad05a8e2341172fe7dcf9f8f9c8050934297316"},+]+[[package]]name = "idna"version = "3.4"@@ -618,7 +629,7 @@ files = [name = "jsonpatch"version = "1.33"description = "Apply JSON-Patches (RFC 6902)"-optional = false+optional = truepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*"files = [{file = "jsonpatch-1.33-py2.py3-none-any.whl", hash = "sha256:0ae28c0cd062bbd8b8ecc26d7d164fbbea9652a1a3693f3b956c1eae5145dade"},@@ -632,7 +643,7 @@ jsonpointer = ">=1.9"name = "jsonpointer"version = "2.4"description = "Identify specific nodes in a JSON document (RFC 6901)"-optional = false+optional = truepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*"files = [{file = "jsonpointer-2.4-py2.py3-none-any.whl", hash = "sha256:15d51bba20eea3165644553647711d150376234112651b4f1811022aecad7d7a"},@@ -641,13 +652,13 @@ files = [[[package]]name = "langchain"-version = "0.0.324"+version = "0.0.325"description = "Building applications with LLMs through composability"-optional = false+optional = truepython-versions = ">=3.8.1,<4.0"files = [- {file = "langchain-0.0.324-py3-none-any.whl", hash = "sha256:9be84d14e264567d52b93d0d2ba1e8cbf38c6e50a3914be02dbd9ea0fabaafd9"},- {file = "langchain-0.0.324.tar.gz", hash = "sha256:d8dc589aa57699d51eeef8ce0507cd3faac4465ad0ff08dfb0a19e5661c3af44"},+ {file = "langchain-0.0.325-py3-none-any.whl", hash = "sha256:666bc3614cf323bd09046f0a50eb6bdb86c8b0f1c65edb7163384877f3423b82"},+ {file = "langchain-0.0.325.tar.gz", hash = "sha256:423bbbf6706486100e56b111206e5ba8d50b41b07e94ebf9946413d5fd038d9d"},][package.dependencies]@@ -672,7 +683,7 @@ cli = ["typer (>=0.9.0,<0.10.0)"]cohere = ["cohere (>=4,<5)"]docarray = ["docarray[hnswlib] (>=0.32.0,<0.33.0)"]embeddings = ["sentence-transformers (>=2,<3)"]-extended-testing = ["aiosqlite (>=0.19.0,<0.20.0)", "amazon-textract-caller (<2)", "anthropic (>=0.3.11,<0.4.0)", "arxiv (>=1.4,<2.0)", "assemblyai (>=0.17.0,<0.18.0)", "atlassian-python-api (>=3.36.0,<4.0.0)", "beautifulsoup4 (>=4,<5)", "bibtexparser (>=1.4.0,<2.0.0)", "cassio (>=0.1.0,<0.2.0)", "chardet (>=5.1.0,<6.0.0)", "dashvector (>=1.0.1,<2.0.0)", "esprima (>=4.0.1,<5.0.0)", "faiss-cpu (>=1,<2)", "feedparser (>=6.0.10,<7.0.0)", "geopandas (>=0.13.1,<0.14.0)", "gitpython (>=3.1.32,<4.0.0)", "google-cloud-documentai (>=2.20.1,<3.0.0)", "gql (>=3.4.1,<4.0.0)", "html2text (>=2020.1.16,<2021.0.0)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "lxml (>=4.9.2,<5.0.0)", "markdownify (>=0.11.6,<0.12.0)", "motor (>=3.3.1,<4.0.0)", "mwparserfromhell (>=0.6.4,<0.7.0)", "mwxml (>=0.3.3,<0.4.0)", "newspaper3k (>=0.2.8,<0.3.0)", "numexpr (>=2.8.6,<3.0.0)", "openai (>=0,<1)", "openapi-pydantic (>=0.3.2,<0.4.0)", "pandas (>=2.0.1,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pgvector (>=0.1.6,<0.2.0)", "psychicapi (>=0.8.0,<0.9.0)", "py-trello (>=0.19.0,<0.20.0)", "pymupdf (>=1.22.3,<2.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pypdfium2 (>=4.10.0,<5.0.0)", "pyspark (>=3.4.0,<4.0.0)", "rank-bm25 (>=0.2.2,<0.3.0)", "rapidfuzz (>=3.1.1,<4.0.0)", "rapidocr-onnxruntime (>=1.3.2,<2.0.0)", "requests-toolbelt (>=1.0.0,<2.0.0)", "rspace_client (>=2.5.0,<3.0.0)", "scikit-learn (>=1.2.2,<2.0.0)", "sqlite-vss (>=0.1.2,<0.2.0)", "streamlit (>=1.18.0,<2.0.0)", "sympy (>=1.12,<2.0)", "telethon (>=1.28.5,<2.0.0)", "timescale-vector (>=0.0.1,<0.0.2)", "tqdm (>=4.48.0)", "upstash-redis (>=0.15.0,<0.16.0)", "xata (>=1.0.0a7,<2.0.0)", "xmltodict (>=0.13.0,<0.14.0)"]+extended-testing = ["aiosqlite (>=0.19.0,<0.20.0)", "aleph-alpha-client (>=2.15.0,<3.0.0)", "amazon-textract-caller (<2)", "anthropic (>=0.3.11,<0.4.0)", "arxiv (>=1.4,<2.0)", "assemblyai (>=0.17.0,<0.18.0)", "atlassian-python-api (>=3.36.0,<4.0.0)", "beautifulsoup4 (>=4,<5)", "bibtexparser (>=1.4.0,<2.0.0)", "cassio (>=0.1.0,<0.2.0)", "chardet (>=5.1.0,<6.0.0)", "dashvector (>=1.0.1,<2.0.0)", "esprima (>=4.0.1,<5.0.0)", "faiss-cpu (>=1,<2)", "feedparser (>=6.0.10,<7.0.0)", "geopandas (>=0.13.1,<0.14.0)", "gitpython (>=3.1.32,<4.0.0)", "google-cloud-documentai (>=2.20.1,<3.0.0)", "gql (>=3.4.1,<4.0.0)", "html2text (>=2020.1.16,<2021.0.0)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "jsonschema (>1)", "lxml (>=4.9.2,<5.0.0)", "markdownify (>=0.11.6,<0.12.0)", "motor (>=3.3.1,<4.0.0)", "mwparserfromhell (>=0.6.4,<0.7.0)", "mwxml (>=0.3.3,<0.4.0)", "newspaper3k (>=0.2.8,<0.3.0)", "numexpr (>=2.8.6,<3.0.0)", "openai (>=0,<1)", "openapi-pydantic (>=0.3.2,<0.4.0)", "pandas (>=2.0.1,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pgvector (>=0.1.6,<0.2.0)", "psychicapi (>=0.8.0,<0.9.0)", "py-trello (>=0.19.0,<0.20.0)", "pymupdf (>=1.22.3,<2.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pypdfium2 (>=4.10.0,<5.0.0)", "pyspark (>=3.4.0,<4.0.0)", "rank-bm25 (>=0.2.2,<0.3.0)", "rapidfuzz (>=3.1.1,<4.0.0)", "rapidocr-onnxruntime (>=1.3.2,<2.0.0)", "requests-toolbelt (>=1.0.0,<2.0.0)", "rspace_client (>=2.5.0,<3.0.0)", "scikit-learn (>=1.2.2,<2.0.0)", "sqlite-vss (>=0.1.2,<0.2.0)", "streamlit (>=1.18.0,<2.0.0)", "sympy (>=1.12,<2.0)", "telethon (>=1.28.5,<2.0.0)", "timescale-vector (>=0.0.1,<0.0.2)", "tqdm (>=4.48.0)", "upstash-redis (>=0.15.0,<0.16.0)", "xata (>=1.0.0a7,<2.0.0)", "xmltodict (>=0.13.0,<0.14.0)"]javascript = ["esprima (>=4.0.1,<5.0.0)"]llms = ["clarifai (>=9.1.0)", "cohere (>=4,<5)", "huggingface_hub (>=0,<1)", "manifest-ml (>=0.0.1,<0.0.2)", "nlpcloud (>=1,<2)", "openai (>=0,<1)", "openlm (>=0.0.5,<0.0.6)", "torch (>=1,<3)", "transformers (>=4,<5)"]openai = ["openai (>=0,<1)", "tiktoken (>=0.3.2,<0.6.0)"]@@ -681,19 +692,22 @@ text-helpers = ["chardet (>=5.1.0,<6.0.0)"][[package]]name = "langserve"-version = "0.0.16"+version = "0.0.19"description = ""-optional = false+optional = truepython-versions = ">=3.8.1,<4.0.0"files = [- {file = "langserve-0.0.16-py3-none-any.whl", hash = "sha256:54a9b94e22ed5948f683e24f01939d793c4a07460c58f23a52dab1909a6627e9"},- {file = "langserve-0.0.16.tar.gz", hash = "sha256:b38c3524515f5d244dfdead8a0ddda76465966d218d95b002abaefd0470ff4cb"},+ {file = "langserve-0.0.19-py3-none-any.whl", hash = "sha256:f644aed61dda42ad1c70770a41285e4069e0233435b7452b4af5b026188c00b0"},+ {file = "langserve-0.0.19.tar.gz", hash = "sha256:930f6a6a090deec2ef3d6375212d06c95dd547ffb7cafe969c286df94fe6823f"},][package.dependencies]+fastapi = {version = ">=0.90.1", optional = true, markers = "extra == \"server\" or extra == \"all\""}httpx = ">=0.23.0"+httpx-sse = {version = ">=0.3.1", optional = true, markers = "extra == \"client\" or extra == \"all\""}langchain = ">=0.0.322"pydantic = ">=1,<2"+sse-starlette = {version = ">=1.3.0,<2.0.0", optional = true, markers = "extra == \"server\" or extra == \"all\""}[package.extras]all = ["fastapi (>=0.90.1)", "httpx-sse (>=0.3.1)", "sse-starlette (>=1.3.0,<2.0.0)"]@@ -704,7 +718,7 @@ server = ["fastapi (>=0.90.1)", "sse-starlette (>=1.3.0,<2.0.0)"]name = "langsmith"version = "0.0.52"description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."-optional = false+optional = truepython-versions = ">=3.8.1,<4.0"files = [{file = "langsmith-0.0.52-py3-none-any.whl", hash = "sha256:d02a0ade5a53b36143084e57003ed38ccbdf5fc15a5a0eb14f8989ceaee0b807"},@@ -743,7 +757,7 @@ testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]name = "marshmallow"version = "3.20.1"description = "A lightweight library for converting complex datatypes to and from native Python datatypes."-optional = false+optional = truepython-versions = ">=3.8"files = [{file = "marshmallow-3.20.1-py3-none-any.whl", hash = "sha256:684939db93e80ad3561392f47be0230743131560a41c5110684c16e21ade0a5c"},@@ -774,7 +788,7 @@ files = [name = "multidict"version = "6.0.4"description = "multidict implementation"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "multidict-6.0.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b1a97283e0c85772d613878028fec909f003993e1007eafa715b24b377cb9b8"},@@ -857,7 +871,7 @@ files = [name = "mypy-extensions"version = "1.0.0"description = "Type system extensions for programs checked with the mypy type checker."-optional = false+optional = truepython-versions = ">=3.5"files = [{file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"},@@ -868,7 +882,7 @@ files = [name = "numpy"version = "1.24.4"description = "Fundamental package for array computing in Python"-optional = false+optional = truepython-versions = ">=3.8"files = [{file = "numpy-1.24.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0bfb52d2169d58c1cdb8cc1f16989101639b34c7d3ce60ed70b19c63eba0b64"},@@ -1064,7 +1078,7 @@ watchdog = ">=0.6.0"name = "pyyaml"version = "6.0.1"description = "YAML parser and emitter for Python"-optional = false+optional = truepython-versions = ">=3.6"files = [{file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"},@@ -1113,7 +1127,7 @@ files = [name = "requests"version = "2.31.0"description = "Python HTTP for Humans."-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"},@@ -1212,7 +1226,7 @@ files = [name = "sqlalchemy"version = "2.0.22"description = "Database Abstraction Library"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "SQLAlchemy-2.0.22.tar.gz", hash = "sha256:5434cc601aa17570d79e5377f5fd45ff92f9379e2abed0be5e8c2fba8d353d2b"},@@ -1246,6 +1260,20 @@ postgresql-psycopgbinary = ["psycopg[binary] (>=3.0.7)"]pymysql = ["pymysql"]sqlcipher = ["sqlcipher3_binary"]+[[package]]+name = "sse-starlette"+version = "1.6.5"+description = "\"SSE plugin for Starlette\""+optional = true+python-versions = ">=3.8"+files = [+ {file = "sse-starlette-1.6.5.tar.gz", hash = "sha256:819f2c421fb37067380fe3dcaba246c476b02651b7bb7601099a378ad802a0ac"},+ {file = "sse_starlette-1.6.5-py3-none-any.whl", hash = "sha256:68b6b7eb49be0c72a2af80a055994c13afcaa4761b29226beb208f954c25a642"},+]++[package.dependencies]+starlette = "*"+[[package]]name = "starlette"version = "0.27.0"@@ -1268,7 +1296,7 @@ full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart", "pyyamname = "tenacity"version = "8.2.3"description = "Retry code until it succeeds"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "tenacity-8.2.3-py3-none-any.whl", hash = "sha256:ce510e327a630c9e1beaf17d42e6ffacc88185044ad85cf74c0a8887c6a0f88c"},@@ -1328,7 +1356,7 @@ files = [name = "typing-inspect"version = "0.9.0"description = "Runtime inspection utilities for typing module."-optional = false+optional = truepython-versions = "*"files = [{file = "typing_inspect-0.9.0-py3-none-any.whl", hash = "sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f"},@@ -1343,7 +1371,7 @@ typing-extensions = ">=3.7.4"name = "urllib3"version = "2.0.7"description = "HTTP library with thread-safe connection pooling, file post, and more."-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "urllib3-2.0.7-py3-none-any.whl", hash = "sha256:fdb6d215c776278489906c2f8916e6e7d4f5a9b602ccbcfdf7f016fc8da0596e"},@@ -1418,7 +1446,7 @@ watchmedo = ["PyYAML (>=3.10)"]name = "yarl"version = "1.9.2"description = "Yet another URL library"-optional = false+optional = truepython-versions = ">=3.7"files = [{file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"},@@ -1501,7 +1529,10 @@ files = [idna = ">=2.0"multidict = ">=4.0"+[extras]+serve = ["langserve"]+[metadata]lock-version = "2.0"python-versions = ">=3.8.1,<4.0"-content-hash = "dc768239c13daf0606a7555d611dbdaf71b00e0d3659842cd1d81eab8cfeeada"+content-hash = "80e530d72b799e5d066f3f6e5f472e5b70a288aed9f3bf4ee6293e3bf5a9e987"diff --git a/libs/cli/pyproject.toml b/libs/cli/pyproject.tomlindex d67d9252b6..032524c98c 100644--- a/libs/cli/pyproject.toml+++ b/libs/cli/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "langchain-cli"-version = "0.0.6"+version = "0.0.7"description = "CLI for interacting with LangChain"authors = ["Erick Friis <[email protected]>"]readme = "README.md"@@ -10,7 +10,7 @@ python = ">=3.8.1,<4.0"typer = {extras = ["all"], version = "^0.9.0"}tomli = "^2.0.1"gitpython = "^3.1.40"-langserve = "^0.0.16"+langserve = {extras = ["all"], version = ">=0.0.16", optional = true}fastapi = "^0.104.0"uvicorn = "^0.23.2"@@ -30,6 +30,10 @@ ruff = "^0.1.3"[tool.poetry.group.typing.dependencies]+[tool.poetry.extras]+# For langserve+serve = ["langserve"]+[tool.ruff]select = ["E", # pycodestylediff --git a/templates/README.md b/templates/README.mdindex 2f0108dcb8..56064c7372 100644--- a/templates/README.md+++ b/templates/README.md@@ -11,13 +11,7 @@ Some other helpful docs:To use, first install the LangChain CLI.```shell-pip install -U langchain-cli-```--Then, install `langserve`:--```shell-pip install -U "langserve[all]"+pip install -U "langchain-cli[serve]"```Next, create a new LangChain project: