From f196468e8a1ecd494f91a5600b91b98f555956a1 Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Wed, 14 May 2025 07:08:11 -0700 Subject: [PATCH] Consolidate further --- README.md | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 06936fd..18ebe0a 100644 --- a/README.md +++ b/README.md @@ -15,24 +15,6 @@ You can extend this graph to orchestrate more complex agentic workflows that can ## Getting Started -1. Install the [LangGraph CLI](https://langchain-ai.github.io/langgraph/concepts/langgraph_cli/). - -``` -pip install --upgrade "langgraph-cli[inmem]" -``` - -2. Create a `.env` file. While this starter app does not require any secrets, if you later decide to connect to LLM providers and other integrations, you will likely need to provide API keys. - -```bash -cp .env.example .env -``` - -3. If desired, add your LangSmith API key in your `.env` file. - -``` -LANGSMITH_API_KEY=lsv2... -``` - @@ -41,18 +23,29 @@ Setup instruction auto-generated by `langgraph template lock`. DO NOT EDIT MANUA End setup instructions --> -4. Install dependencies +1. Install dependencies, along with the [LangGraph CLI](https://langchain-ai.github.io/langgraph/concepts/langgraph_cli/), which will be used to run the server. ```bash cd path/to/your/app -pip install -e . -pip install "langgraph-cli[inmem]" +pip install -e . "langgraph-cli[inmem]" ``` -5. Customize the code as needed. -6. Start the LangGraph Server. +2. (Optional) Customize the code and project as needed. Create a `.env` file if you need to use secrets. +```bash +cp .env.example .env ``` + +If you want to enable LangSmith tracing, add your LangSmith API key to the `.env` file. + +```text +# .env +LANGSMITH_API_KEY=lsv2... +``` + +3. Start the LangGraph Server. + +```shell langgraph dev ```