From adc1e47028c0af3e3da82be126222883084eada5 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Tue, 21 Jan 2025 12:00:12 -0500 Subject: [PATCH] nits --- .../how-tos/create-react-agent-memory.ipynb | 2 +- docs/docs/how-tos/create-react-agent.ipynb | 2 +- .../human_in_the_loop/wait-user-input.ipynb | 2 +- docs/docs/how-tos/index.md | 29 ++++++++++++++----- docs/docs/how-tos/state-model.ipynb | 2 +- docs/docs/how-tos/subgraph-persistence.ipynb | 2 +- docs/docs/how-tos/subgraph.ipynb | 2 +- 7 files changed, 27 insertions(+), 14 deletions(-) diff --git a/docs/docs/how-tos/create-react-agent-memory.ipynb b/docs/docs/how-tos/create-react-agent-memory.ipynb index 518cafee5..16a18a8d4 100644 --- a/docs/docs/how-tos/create-react-agent-memory.ipynb +++ b/docs/docs/how-tos/create-react-agent-memory.ipynb @@ -5,7 +5,7 @@ "id": "992c4695-ec4f-428d-bd05-fb3b5fbd70f4", "metadata": {}, "source": [ - "# How to add memory to the prebuilt ReAct agent\n", + "# How to add thread-level memory to a ReAct Agent\n", "\n", "
\n", "

Prerequisites

\n", diff --git a/docs/docs/how-tos/create-react-agent.ipynb b/docs/docs/how-tos/create-react-agent.ipynb index 3625b118d..14e1caaca 100644 --- a/docs/docs/how-tos/create-react-agent.ipynb +++ b/docs/docs/how-tos/create-react-agent.ipynb @@ -5,7 +5,7 @@ "id": "992c4695-ec4f-428d-bd05-fb3b5fbd70f4", "metadata": {}, "source": [ - "# How to use the prebuilt ReAct agent" + "# How to use the pre-built ReAct agent" ] }, { diff --git a/docs/docs/how-tos/human_in_the_loop/wait-user-input.ipynb b/docs/docs/how-tos/human_in_the_loop/wait-user-input.ipynb index e13c17b41..8ddc73678 100644 --- a/docs/docs/how-tos/human_in_the_loop/wait-user-input.ipynb +++ b/docs/docs/how-tos/human_in_the_loop/wait-user-input.ipynb @@ -591,7 +591,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.10.4" } }, "nbformat": 4, diff --git a/docs/docs/how-tos/index.md b/docs/docs/how-tos/index.md index 532b8e586..d26fa4025 100644 --- a/docs/docs/how-tos/index.md +++ b/docs/docs/how-tos/index.md @@ -22,10 +22,10 @@ These how-to guides show how to achieve that controllability. ### Persistence -[LangGraph Persistence](../concepts/persistence.md) makes it easy to persist state across graph runs (thread-level persistence) and across threads (cross-thread persistence). These how-to guides show how to add persistence to your graph. +[LangGraph Persistence](../concepts/persistence.md) makes it easy to persist state across graph runs (per-thread persistence) and across threads (cross-thread persistence). These how-to guides show how to add persistence to your graph. - [How to add thread-level persistence to your graph](persistence.ipynb) -- [How to add thread-level persistence to subgraphs](subgraph-persistence.ipynb) +- [How to add thread-level persistence to a subgraph](subgraph-persistence.ipynb) - [How to add cross-thread persistence to your graph](cross-thread-persistence.ipynb) - [How to use Postgres checkpointer for persistence](persistence_postgres.ipynb) - [How to use MongoDB checkpointer for persistence](persistence_mongodb.ipynb) @@ -83,7 +83,10 @@ Other methods: ### Tool calling -[Tool calling](https://python.langchain.com/docs/concepts/tool_calling/) is a type of chat model API that accepts tool schemas, along with messages, as input and returns invocations of those tools as part of the output message. +[Tool calling](https://python.langchain.com/docs/concepts/tool_calling/) is a type of +[chat model](https://python.langchain.com/docs/concepts/chat_models/) API that accepts +tool schemas, along with messages, as input and returns invocations of those tools as +part of the output message. These how-to guides show common patterns for tool calling with LangGraph: @@ -98,7 +101,7 @@ These how-to guides show common patterns for tool calling with LangGraph: [Subgraphs](../concepts/low_level.md#subgraphs) allow you to reuse an existing graph from another graph. These how-to guides show how to use subgraphs: -- [How to add and use subgraphs](subgraph.ipynb) +- [How to use subgraphs](subgraph.ipynb) - [How to view and update state in subgraphs](subgraphs-manage-state.ipynb) - [How to transform inputs and outputs of a subgraph](subgraph-transform-state.ipynb) @@ -114,7 +117,7 @@ See the [multi-agent tutorials](../tutorials/index.md#multi-agent-systems) for i ### State Management -- [How to use Pydantic model as state](state-model.ipynb) +- [How to use Pydantic model as graph state](state-model.ipynb) - [How to define input/output schema for your graph](input_output_schema.ipynb) - [How to pass private state between nodes inside the graph](pass_private_state.ipynb) @@ -137,13 +140,17 @@ One of the big benefits of LangGraph is that you can easily create your own agen These guides show how to use the prebuilt ReAct agent: -- [How to create a ReAct agent](create-react-agent.ipynb) -- [How to add memory to a ReAct agent](create-react-agent-memory.ipynb) +- [How to use the pre-built ReAct agent](create-react-agent.ipynb) +- [How to add thread-level memory to a ReAct Agent](create-react-agent-memory.ipynb) - [How to add a custom system prompt to a ReAct agent](create-react-agent-system-prompt.ipynb) - [How to add human-in-the-loop processes to a ReAct agent](create-react-agent-hitl.ipynb) -- [How to create prebuilt ReAct agent from scratch](react-agent-from-scratch.ipynb) - [How to add semantic search for long-term memory to a ReAct agent](memory/semantic-search.ipynb#using-in-create-react-agent) +Interested in further customizing the ReAct agent? This guide provides an +overview of its underlying implementation to help you customize for your own needs: + +- [How to create prebuilt ReAct agent from scratch](react-agent-from-scratch.ipynb) + ## LangGraph Platform This section includes how-to guides for LangGraph Platform. @@ -187,11 +194,17 @@ LangGraph applications can be deployed using LangGraph Cloud, which provides a r [Assistants](../concepts/assistants.md) is a configured instance of a template. +See [SDK Reference](../cloud/reference/sdk/python_sdk_ref/#langgraph_sdk.client.AssistantsClient) +for supported endpoints and other details. + - [How to configure agents](../cloud/how-tos/configuration_cloud.md) - [How to version assistants](../cloud/how-tos/assistant_versioning.md) ### Threads +See [SDK Reference](../cloud/reference/sdk/python_sdk_ref/#langgraph_sdk.client.ThreadsClient) +for supported endpoints and other details. + - [How to copy threads](../cloud/how-tos/copy_threads.md) - [How to check status of your threads](../cloud/how-tos/check_thread_status.md) diff --git a/docs/docs/how-tos/state-model.ipynb b/docs/docs/how-tos/state-model.ipynb index 6a066d796..221a4738d 100644 --- a/docs/docs/how-tos/state-model.ipynb +++ b/docs/docs/how-tos/state-model.ipynb @@ -5,7 +5,7 @@ "id": "51466c8d-8ce4-4b3d-be4e-18fdbeda5f53", "metadata": {}, "source": [ - "# How to use Pydantic model as state\n", + "# How to use Pydantic model as graph state\n", "\n", "
\n", "

Prerequisites

\n", diff --git a/docs/docs/how-tos/subgraph-persistence.ipynb b/docs/docs/how-tos/subgraph-persistence.ipynb index 4488fae6c..f505744b7 100644 --- a/docs/docs/how-tos/subgraph-persistence.ipynb +++ b/docs/docs/how-tos/subgraph-persistence.ipynb @@ -5,7 +5,7 @@ "id": "176e8dbb-1a0a-49ce-a10e-2417e8ea17a0", "metadata": {}, "source": [ - "# How to add thread-level persistence to subgraphs" + "# How to add thread-level persistence to a subgraph" ] }, { diff --git a/docs/docs/how-tos/subgraph.ipynb b/docs/docs/how-tos/subgraph.ipynb index 84e677e52..f877d559b 100644 --- a/docs/docs/how-tos/subgraph.ipynb +++ b/docs/docs/how-tos/subgraph.ipynb @@ -9,7 +9,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# How to add and use subgraphs\n", + "# How to use subgraphs\n", "\n", "
\n", "

Prerequisites

\n",