text stringlengths 35 16k |
|---|
human: Tell me about Setup.
bot: First, let's install the required packages and set our API keys %%capture --no-stderr %pip install --quiet -U langgraph langchain_anthropic import getpass import os def _set_env(var: str): if not os.environ.get(var): os.environ[var] = getpass.getpass(f"{var}: ") _set_env("ANTHROPIC_AP... |
human: How does LangGraph Quickstart work?
bot: In this tutorial, we will build a support chatbot in LangGraph that can: **Answer common questions** by searching the web **Maintain conversation state** across calls **Route complex queries** to a human for review **Use custom state** to control its behavior **Rewind a... |
human: Can you explain Comments?
bot: Back to top [ Previous How to use MongoDB checkpointer for persistence ](../persistence_mongodb/) [ Next How to add thread-level persistence (functional API) ](../persistence-functional/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What is Part 4: Human-in-the-loop?
bot: Agents can be unreliable and may need human input to successfully accomplish tasks. Similarly, for some actions, you may want to require human approval before running to ensure that everything is running as intended. LangGraph's [persistence](../../concepts/persistence) ... |
human: Can you explain Cookie consent?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Acc... |
human: Can you explain Comments?
bot: Back to top [ Previous How to add cross-thread persistence to your graph ](../cross-thread-persistence/) [ Next How to use MongoDB checkpointer for persistence ](../persistence_mongodb/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What are the key aspects of Components?
bot: The LangGraph Platform comprises several components that work together to support the deployment and management of LangGraph applications: * [LangGraph Server](langgraph_server/): The LangGraph Server is designed to support a wide range of agentic application use ca... |
human: Tell me about Cookie consent.
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: What are the key aspects of Using the graph?
bot: def print_update(update): for k, v in update.items(): for m in v["messages"]: m.pretty_print() if "summary" in v: print(v["summary"]) from langchain_core.messages import HumanMessage config = {"configurable": {"thread_id": "4"}} input_message = HumanMessage(con... |
human: Tell me about Parallelization.
bot: Parallel processing is vital for efficient multi-agent systems and complex tasks. LangGraph supports parallelization through its [Send](../low_level/#send) API, enabling: * Concurrent processing of multiple states * Implementation of map-reduce-like operations * Efficient ha... |
human: How does Usage work?
bot: Let's invoke our model with a question that requires human assistance. Our question will also require an invocation of the `get_weather` tool: def _print_step(step: dict) -> None: for task_name, result in step.items(): if task_name == "agent": continue # just stream from tasks print(f... |
human: Can you explain Persistence?
bot: [LangGraph Persistence](../concepts/persistence/) 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 y... |
human: Tell me about Comments.
bot: Back to top [ Previous LLMS-txt ](../../llms-txt-overview/) [ Next Troubleshooting ](../../troubleshooting/errors/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Can you explain Cookie consent?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Acc... |
human: What are the key aspects of Subgraphs called as functions?
bot: When invoking a subgraph [as a function](../low_level/#as-a-function), the **parent graph** will resume execution from the **beginning of the node** where the subgraph was invoked (and where an `interrupt` was triggered). Similarly, the **subgraph... |
human: How does Key Concepts work?
bot: To deploy using the LangGraph Platform, the following information should be provided: 1. A LangGraph API Configuration file (`langgraph.json`) that specifies the dependencies, graphs, environment variables to use for the application. 2. The graphs that implement the logic of th... |
human: Tell me about Cookie consent.
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: Tell me about Define parent graph.
bot: We can now setup the overall graph. This graph will first route to the subgraph if it needs to get the weather, otherwise it will route to a normal LLM. from typing import Literal from typing_extensions import TypedDict from langgraph.checkpoint.memory import MemorySaver... |
human: What is Planning?
bot: In the ReAct architecture, an LLM is called repeatedly in a while-loop. At each step the agent decides which tools to call, and what the inputs to those tools should be. Those tools are then executed, and the outputs are fed back into the LLM as observations. The while-loop terminates wh... |
human: What are the key aspects of Next Steps?
bot: Take your journey further by exploring deployment and advanced features: |
human: What are the key aspects of Queue scalability?
bot: As you add more instances to a service, they will increase run throughput linearly, as each instance is configured to handle a set number of concurrent runs (by default 10). Each attempt for each run will be handled by a single instance, with exactly-once sem... |
human: How does Cookie consent work?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: What are the key aspects of Cookie consent?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics ... |
human: What is your name?
bot: My name is Mary |
human: What is Setup?
bot: First, let's install the required packages and set our API keys %%capture --no-stderr %pip install --quiet -U langgraph langchain_anthropic import getpass import os def _set_env(var: str): if not os.environ.get(var): os.environ[var] = getpass.getpass(f"{var}: ") _set_env("ANTHROPIC_API_KEY"... |
human: Can you explain How it works?
bot: * We provide you a which you run to set up our requirements 1. Creates an AWS role (which our control plane will later assume to provision and monitor resources) * * Read VPCS to find subnets * * Used to create/delete ECS resources for your LangGraph Cloud instances * * Creat... |
human: Which is the best programming language?
bot: Python |
human: How does Determinism and Consistent Replay work?
bot: When you resume a workflow run, the code does **NOT** resume from the **same line of code** where execution stopped; instead, it will identify an appropriate starting point from which to pick up where it left off. This means that the workflow will replay al... |
human: How does Cookie consent work?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: What is How we use Postgres?
bot: Postgres is the persistence layer for all user and run data in LGP. This stores both checkpoints (see more info [here](../persistence/)) as well as the server resources (threads, runs, assistants and crons). |
human: Can you explain Create graph?
bot: import uuid from typing import Annotated from typing_extensions import TypedDict from langchain_anthropic import ChatAnthropic from langchain_core.runnables import RunnableConfig from langgraph.graph import StateGraph, MessagesState, START from langgraph.checkpoint.memory imp... |
human: Can you explain Comments?
bot: Back to top [ Previous LangGraph Platform Plans ](../plans/) [ Next LangGraph Control Plane ](../langgraph_control_plane/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Can you explain Setup?
bot: First we need to install the packages required %%capture --no-stderr %pip install --quiet -U langgraph langchain_anthropic Next, we need to set API keys for Anthropic and / or OpenAI (the LLM(s) we will use) import getpass import os def _set_env(var: str): if not os.environ.get(var)... |
human: What are the key aspects of Summary?
bot: When creating a loop, you can include a conditional edge that specifies a termination condition: builder = StateGraph(State) builder.add_node(a) builder.add_node(b) def route(state: State) -> Literal["b", END]: if termination_condition(state): return END else: return "... |
human: What are the key aspects of How to edit graph state?
bot: Prerequisites * [Human-in-the-loop](../../../concepts/human_in_the_loop) * [Breakpoints](../../../concepts/breakpoints) * [LangGraph Glossary](../../../concepts/low_level) Human-in-the-loop (HIL) interactions are crucial for . Manually updating the grap... |
human: How does How to create map-reduce branches for parallel execution work?
bot: Prerequisites This guide assumes familiarity with the following: * * * * operations are essential for efficient task decomposition and parallel processing. This approach involves breaking a task into smaller sub-tasks, processing each... |
human: Tell me about Redis resilience.
bot: All data that requires durable storage is stored in Postgres, not Redis. Redis is used only for ephemeral metadata, and communication between instances. Refer to the [architecture](../platform_architecture/) page for more details on how we use Redis. Therefore we place no d... |
human: What is Related?
bot: * [LangGraph CLI API Reference](../../cloud/reference/cli/) * [Python SDK Reference](../../cloud/reference/sdk/python_sdk_ref/) * [JS/TS SDK Reference](../../cloud/reference/sdk/js_ts_sdk_ref/) Was this page helpful? Thanks for your feedback! Thanks for your feedback! Please help us impro... |
human: What is Short-term memory?
bot: State management using the **previous** parameter and optionally using the `entrypoint.final` primitive can be used to implement [short term memory](../memory/). Please see the following how-to guides for more details: * [How to add thread-level persistence (functional API)](../... |
human: What is Setup?
bot: First, let's install the required packages and set our API keys %%capture --no-stderr %pip install -U langgraph langchain-openai import getpass import os def _set_env(var: str): if not os.environ.get(var): os.environ[var] = getpass.getpass(f"{var}: ") _set_env("OPENAI_API_KEY") Set up for L... |
human: What is Cookie consent?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accept Reje... |
human: How does How to use MongoDB checkpointer for persistence work?
bot: Prerequisites This guide assumes familiarity with the following: * * When creating LangGraph agents, you can also set them up so that they persist their state. This allows you to do things like interact with an agent multiple times and have it... |
human: What is Interacting with the Agent?
bot: We can now interact with the agent and see that it stops before calling a tool. from langchain_core.messages import HumanMessage thread = {"configurable": {"thread_id": "3"}} inputs = [HumanMessage(content="search for the weather in sf now")] for event in app.stream({"m... |
human: Tell me about Streaming.
bot: LangGraph also provides support for [streaming](../../how-tos/#streaming) workflow / agent state to the user (or developer) over the course of execution. LangGraph supports streaming of both events ([such as feedback from a tool call](../../how-tos/streaming/#updates)) and [tokens... |
human: Can you explain Example?
bot: Below we demonstrate an example with two LLM calls in a single node. from typing import TypedDict from langgraph.graph import START, StateGraph, MessagesState from langchain_openai import ChatOpenAI # Note: we're adding the tags here to be able to filter the model outputs down the... |
human: What are the key aspects of Define graph and subgraphs?
bot: Let's define 3 graphs: \- a parent graph \- a child subgraph that will be called by the parent graph \- a grandchild subgraph that will be called by the child graph |
human: Tell me about Code.
bot: # First we initialize the model we want to use. from langchain_openai import ChatOpenAI model = ChatOpenAI(model="gpt-4o", temperature=0) # For this tutorial we will use custom tool that returns pre-defined values for weather in two cities (NYC & SF) from typing import Literal from lan... |
human: Can you explain Comments?
bot: Back to top Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What are the key aspects of Checkpoints?
bot: Checkpoint is a snapshot of the graph state saved at each super-step and is represented by `StateSnapshot` object with the following key properties: * `config`: Config associated with this checkpoint. * `metadata`: Metadata associated with this checkpoint. * `value... |
human: Can you explain Setup?
bot: First, let's install the required packages %%capture --no-stderr %pip install -U langgraph Set up for LangGraph development Sign up for LangSmith to quickly spot issues and improve the performance of your LangGraph projects. LangSmith lets you use trace data to debug, test, and moni... |
human: Can you explain Usage?
bot: Let's demonstrate some scenarios. def _print_step(step: dict) -> None: for task_name, result in step.items(): if task_name == "agent": continue # just stream from tasks print(f"\n{task_name}:") if task_name in ("__interrupt__", "review_tool_call"): print(result) else: result.pretty_... |
human: What is How to call tools using ToolNode?
bot: This guide covers how to use LangGraph's prebuilt for tool calling. `ToolNode` is a LangChain Runnable that takes graph state (with a list of messages) as input and outputs state update with the result of tool calls. It is designed to work well out-of-box with Lan... |
human: How does How to Review Tool Calls work?
bot: Prerequisites This guide assumes familiarity with the following concepts: * * [Human-in-the-loop](../../../concepts/human_in_the_loop) * [LangGraph Glossary](../../../concepts/low_level) Human-in-the-loop (HIL) interactions are crucial for [agentic systems](../../..... |
human: What is How to add thread-level persistence to your graph?
bot: Prerequisites This guide assumes familiarity with the following: * * * Many AI applications need memory to share context across multiple interactions. In LangGraph, this kind of memory can be added to any using . When creating any LangGraph graph,... |
human: What are the key aspects of ReAct implementation?
bot: There are several differences between paper and the pre-built [`create_react_agent`](../../reference/prebuilt/#langgraph.prebuilt.chat_agent_executor.create_react_agent) implementation: * First, we use tool-calling to have LLMs call tools, whereas the pape... |
human: What are the key aspects of Define graph?
bot: Finally, let's combine this into a single graph using the prebuilt `create_react_agent`: from langgraph.prebuilt import create_react_agent from langchain_openai import ChatOpenAI model = ChatOpenAI(model="gpt-4o") agent = create_react_agent( model, # pass the tool... |
human: Tell me about Cookie consent.
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: How does Use cases work?
bot: Key use cases for **human-in-the-loop** workflows in LLM-based applications include: 1. ** Reviewing tool calls**: Humans can review, edit, or approve tool calls requested by the LLM before tool execution. 2. ** Validating LLM outputs** : Humans can review, edit, or approve conten... |
human: How does Cron Jobs work?
bot: There are many situations in which it is useful to run an assistant on a schedule. For example, say that you're building an assistant that runs daily and sends an email summary of the day's news. You could use a cron job to run the assistant every day at 8:00 PM. LangGraph Cloud s... |
human: Can you explain Setup?
bot: First, let's install langgraph: %%capture --no-stderr %pip install -U langgraph Set up for better debugging Sign up for LangSmith to quickly spot issues and improve the performance of your LangGraph projects. LangSmith lets you use trace data to debug, test, and monitor your LLM aps... |
human: Tell me about Example.
bot: Below we demonstrate a simple application that writes an essay and [interrupts](../human_in_the_loop/) to request human review. from langgraph.checkpoint.memory import MemorySaver from langgraph.func import entrypoint, task from langgraph.types import interrupt @task def write_essay... |
human: Tell me about Define parent.
bot: class ParentState(TypedDict): my_key: str def parent_1(state: ParentState) -> ParentState: # NOTE: child or grandchild keys won't be accessible here return {"my_key": "hi " + state["my_key"]} def parent_2(state: ParentState) -> ParentState: return {"my_key": state["my_key"] + ... |
human: What are the key aspects of Deployment?
bot: LangGraph provides an easy on-ramp for deployment, observability, and evaluation. See of LangChain Academy. Was this page helpful? Thanks for your feedback! Thanks for your feedback! Please help us improve this page by adding to the discussion below. |
human: How does Using tasks in nodes work?
bot: If a [node](../low_level/#nodes) contains multiple operations, you may find it easier to convert each operation into a **task** rather than refactor the operations into individual nodes. OriginalWith task from typing import NotRequired from typing_extensions import Type... |
human: What is Configuration File?
bot: The `langgraph.json` file is a JSON file that specifies the dependencies, graphs, environment variables, and other settings required to deploy a LangGraph application. The file supports specification of the following information: Key * `./your_package/your_file.py:variable`, wh... |
human: How does Resilience work?
bot: While a run is being handled by a queue instance, a periodic heartbeat timestamp will be recorded in Redis by that queue worker. When a graceful shutdown request is received (SIGINT) an instance enters shutdown mode, which * stops accepting new HTTP requests * gives any in-progre... |
human: How does Cookie consent work?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: How does Prompt chaining work?
bot: In prompt chaining, each LLM call processes the output of the previous one. As noted in the Anthropic blog on `Building Effective Agents`: > Prompt chaining decomposes a task into a sequence of steps, where each LLM call processes the output of the previous one. You can add ... |
human: Can you explain How to do a Self-hosted deployment of LangGraph?
bot: Prerequisites * [Application Structure](../../concepts/application_structure/) * [Deployment Options](../../concepts/deployment_options/) This how-to guide will walk you through how to create a docker image from an existing LangGraph applica... |
human: What is Using Docker?
bot: docker run \ --env-file .env \ -p 8123:8000 \ -e REDIS_URI="foo" \ -e DATABASE_URI="bar" \ -e LANGSMITH_API_KEY="baz" \ my-image If you want to run this quickly without setting up a separate Redis and Postgres instance, you can use this docker compose file. Note * You need to replace... |
human: What is Multi-agent?
bot: [Multi-agent systems](../concepts/multi_agent/) are useful to break down complex LLM applications into multiple agents, each responsible for a different part of the application. These how-to guides show how to implement multi-agent systems in LangGraph: * [How to implement handoffs be... |
human: How does Define the nodes work?
bot: We now need to define a few different nodes in our graph. In `langgraph`, a node can be either a function or a . There are two main nodes we need for this: 1. The agent: responsible for deciding what (if any) actions to take. 2. A function to invoke tools: if the agent deci... |
human: Can you explain Comments?
bot: Back to top [ Previous How to update graph state from tools ](../update-state-from-tools/) [ Next How to handle large numbers of tools ](../many-tools/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What is Comments?
bot: Back to top [ Previous How to transform inputs and outputs of a subgraph ](../subgraph-transform-state/) [ Next How to build a multi-agent network ](../multi-agent-network/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: How does Communication work?
bot: All runs in LGP are executed by the pool of background workers that are part of each deployment. In order to enable some features for those runs (such as cancellation and output streaming) we need a channel for two-way communication between the server and the worker handling a... |
human: What are the key aspects of Available Templates?
bot: Template To create a new app from a template, use the `langgraph new` command. langgraph new |
human: Can you explain Comments?
bot: Back to top [ Previous How to add multi-turn conversation in a multi-agent application (functional API) ](../multi-agent-multi-turn-convo-functional/) [ Next How to define input/output schema for your graph ](../input_output_schema/) Copyright (C) 2025 LangChain, Inc | Consent Pr... |
human: What are the key aspects of Checking history?
bot: Let's browse the history of this thread, from start to finish. app.get_state(config).values["messages"] [HumanMessage(content="Can you play Taylor Swift's most popular song?", id='7e32f0f3-75f5-48e1-a4ae-d38ccc15973b'), AIMessage(content='', additional_kwargs=... |
human: Can you explain Setup?
bot: First we need to install the packages required %%capture --no-stderr %pip install --quiet -U langgraph langchain_anthropic Next, we need to set API key for Anthropic (the LLM we will use). import getpass import os def _set_env(var: str): if not os.environ.get(var): os.environ[var] =... |
human: How does Cookie consent work?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: Can you explain Cookie consent?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Acc... |
human: Tell me about Replay a state.
bot: We can go back to any of these states and restart the agent from there! Let's go back to right before the tool call gets executed. to_replay = all_states[2] to_replay.values {'messages': [HumanMessage(content="Can you play Taylor Swift's most popular song?", id='7e32f0f3-75f5... |
human: How does Comments work?
bot: Back to top [ Previous LangGraph SDK ](../../concepts/sdk/) [ Next Application Structure ](../../concepts/application_structure/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Can you explain Environment Variables?
bot: If you're working with a deployed LangGraph application locally, you can configure environment variables in the `env` key of the LangGraph configuration file. For a production deployment, you will typically want to configure the environment variables in the deploymen... |
human: How does Define tool work?
bot: First, let's define the tool that we'll be using to look up user information. We'll use a naive implementation that simply looks user information up using a dictionary: USER_INFO = [ {"user_id": "1", "name": "Bob Dylan", "location": "New York, NY"}, {"user_id": "2", "name": "Tay... |
human: How does How to delete messages work?
bot: One of the common states for a graph is a list of messages. Usually you only add messages to that state. However, sometimes you may want to remove messages (either by directly modifying the state or as part of the graph). To do that, you can use the `RemoveMessage` mo... |
human: What is Define subgraph?
bot: First, let's set up our subgraph. For this, we will create a simple graph that can get the weather for a specific city. We will compile this graph with a before the `weather_node`: from langgraph.graph import StateGraph, END, START, MessagesState from langchain_core.tools import t... |
human: How does Self-Hosted Data Plane work?
bot: The [Self-Hosted Data Plane](../langgraph_self_hosted_data_plane/) deployment option is a "hybrid" model for deployemnt where we manage the [control plane](../langgraph_control_plane/) in our cloud and you manage the [data plane](../langgraph_data_plane/) in your clou... |
human: What are the key aspects of Persistence and Task Queue?
bot: The LangGraph Server leverages a database for [persistence](../persistence/) and a task queue. Currently, only is supported as a database for LangGraph Server and as the task queue. If you're deploying using [LangGraph Cloud](../langgraph_cloud/), th... |
human: How does Cookie consent work?
bot: We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. **Clicking "Accept" makes our documentation better. Thank you!** * Google Analytics * GitHub Accep... |
human: How does Setup work?
bot: First, let's install the required packages %%capture --no-stderr %pip install -U langgraph Set up for LangGraph development Sign up for LangSmith to quickly spot issues and improve the performance of your LangGraph projects. LangSmith lets you use trace data to debug, test, and monito... |
human: Can you explain LangGraph Platform?
bot: This section includes how-to guides for LangGraph Platform. LangGraph Platform is a commercial solution for deploying agentic applications in production, built on the open-source LangGraph framework. The LangGraph Platform offers a few different deployment options descr... |
human: What is Setup?
bot: First, let's install the required packages # %%capture --no-stderr # %pip install -U langgraph langchain-anthropic import getpass import os def _set_env(var: str): if not os.environ.get(var): os.environ[var] = getpass.getpass(f"{var}: ") _set_env("ANTHROPIC_API_KEY") ANTHROPIC_API_KEY: Set ... |
human: How does How it works work?
bot: * Deploy Redis and Postgres instances on your own infrastructure. * Build the docker image for [LangGraph Server](../langgraph_server/) using the [LangGraph CLI](../langgraph_cli/). * Deploy a web server that will run the docker image and pass in the necessary environment varia... |
human: Can you explain Use the graph?
bot: # Call the graph: here we call it to generate a list of jokes for s in app.stream({"topic": "animals"}): print(s) {'generate_topics': {'subjects': ['Lions', 'Elephants', 'Penguins', 'Dolphins']}} {'generate_joke': {'jokes': ["Why don't elephants use computers? They're afraid... |
human: What are the key aspects of Use sync connection?
bot: with RedisSaver.from_conn_info(host="localhost", port=6379, db=0) as checkpointer: graph = create_react_agent(model, tools=tools, checkpointer=checkpointer) config = {"configurable": {"thread_id": "1"}} res = graph.invoke({"messages": [("human", "what's the... |
human: How does Human-in-the-loop work?
bot: This guide uses the new `interrupt` function. As of LangGraph 0.2.57, the recommended way to set breakpoints is using the [`interrupt` function](../../reference/types/#langgraph.types.interrupt) as it simplifies **human-in-the-loop** patterns. If you're looking for the pre... |
human: How does Create the workflow work?
bot: We will now create a LangGraph chatbot graph that calls AutoGen agent. from langchain_core.messages import convert_to_openai_messages, BaseMessage from langgraph.func import entrypoint, task from langgraph.graph import add_messages from langgraph.checkpoint.memory import... |
human: Tell me about Comments.
bot: Back to top [ Previous How to interact with the deployment using RemoteGraph ](../../how-tos/use-remote-graph/) [ Next Assistants ](../assistants/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Tell me about Comments.
bot: Back to top Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.