text stringlengths 35 16k |
|---|
human: What are the key aspects of Python Sync vs. Async?
bot: The Python SDK provides both synchronous (`get_sync_client`) and asynchronous (`get_client`) clients for interacting with the LangGraph Server API. AsyncSync from langgraph_sdk import get_client client = get_client(url=..., api_key=...) await client.assis... |
human: Can you explain Comments?
bot: Back to top [ Previous How to stream from subgraphs ](../streaming-subgraphs/) [ Next How to call tools using ToolNode ](../tool-calling/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Can you explain `config`?
bot: The config should contain `thread_id` specifying which thread to update. When only the `thread_id` is passed, we update (or fork) the current state. Optionally, if we include `checkpoint_id` field, then we fork that selected checkpoint. |
human: What are the key aspects of Setup?
bot: First, let's install the required packages %%capture --no-stderr %pip install -U langgraph |
human: How does Comments work?
bot: Back to top [ Previous LangGraph Studio ](../langgraph_studio/) [ Next LangGraph SDK ](../sdk/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What is Store?
bot: Store is an API for managing persistent [key-value store](../persistence/#memory-store) that is available from any thread. Stores are useful for implementing [memory](../memory/) in your LangGraph application. |
human: What are the key aspects of Comments?
bot: Back to top [ Previous How to integrate LangGraph with AutoGen, CrewAI, and other frameworks ](../autogen-integration/) [ Next How to use the pre-built ReAct agent ](../create-react-agent/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What is Basic usage?
bot: import random from typing_extensions import TypedDict, Literal from langgraph.graph import StateGraph, START from langgraph.types import Command # Define graph state class State(TypedDict): foo: str # Define the nodes def node_a(state: State) -> Command[Literal["node_b", "node_c"]]: p... |
human: What are the key aspects of Create the graph?
bot: We will now create a LangGraph chatbot graph that calls AutoGen agent. from langchain_core.messages import convert_to_openai_messages from langgraph.graph import StateGraph, MessagesState, START from langgraph.checkpoint.memory import MemorySaver def call_auto... |
human: Tell me about Graph API Basics.
bot: * [How to update graph state from nodes](state-reducers/) * [How to create a sequence of steps](sequence/) * [How to create branches for parallel execution](branching/) * [How to create and control loops with recursion limits](recursion-limit/) * [How to visualize your grap... |
human: What are the key aspects of Runtime Type Coercion?
bot: Pydantic performs runtime type coercion for certain data types. This can be helpful but also lead to unexpected behavior if you're not aware of it. from langgraph.graph import StateGraph, START, END from pydantic import BaseModel class CoercionExample(Bas... |
human: Can you explain Comments?
bot: Back to top [ Previous How to Review Tool Calls ](../human_in_the_loop/review-tool-calls/) [ Next How to review tool calls (Functional API) ](../review-tool-calls-functional/) 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: How does Using Docker Compose work?
bot: volumes: langgraph-data: driver: local services: langgraph-redis: image: redis:6 healthcheck: test: redis-cli ping interval: 5s timeout: 1s retries: 5 langgraph-postgres: image: postgres:16 ports: - "5433:5432" environment: POSTGRES_DB: postgres POSTGRES_USER: postgres ... |
human: What are the key aspects of Use it!?
bot: from langchain_core.messages import HumanMessage user_to_pets.clear() # Clear the state print(f"User information prior to run: {user_to_pets}") inputs = {"messages": [HumanMessage(content="my favorite pets are cats and dogs")]} for chunk in graph.stream( inputs, {"conf... |
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 Persistence?
bot: LangGraph has a , which offers a number of benefits: * : LangGraph persists arbitrary aspects of your application's state, supporting memory of conversations and other updates within and across user interactions; * : Because state is checkpointed, execution can be interrupted and resu... |
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: Tell me about Define the graph with persistence.
bot: To add persistence to a graph with subgraphs, all you need to do is pass a when **compiling the parent graph**. LangGraph will automatically propagate the checkpointer to the child subgraphs. Note You **shouldn't provide** a checkpointer when compiling a su... |
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 Pre-built.
bot: LangGraph also provides a **pre-built method** for creating an agent as defined above (using the [`create_react_agent`](../../reference/prebuilt/#langgraph.prebuilt.chat_agent_executor.create_react_agent) function): from langgraph.prebuilt import create_react_agent # Pass in: # (1... |
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 Idempotency.
bot: Idempotency ensures that running the same operation multiple times produces the same result. This helps prevent duplicate API calls and redundant processing if a step is rerun due to a failure. Always place API calls inside **tasks** functions for checkpointing, and design them ... |
human: How does Build the chatbot work?
bot: Let's now build the chatbot. from typing import Literal from langchain_anthropic import ChatAnthropic from langchain_core.messages import SystemMessage, RemoveMessage, HumanMessage from langgraph.checkpoint.memory import MemorySaver from langgraph.graph import MessagesStat... |
human: Can you explain Semantic Search?
bot: Beyond simple retrieval, the store also supports semantic search, allowing you to find memories based on meaning rather than exact matches. To enable this, configure the store with an embedding model: from langchain.embeddings import init_embeddings store = InMemoryStore( ... |
human: How does Subgraphs work?
bot: [Subgraphs](../low_level/#subgraphs) are essential for managing complex agent architectures, particularly in [multi-agent systems](../multi_agent/). They allow: * Isolated state management for individual agents * Hierarchical organization of agent teams * Controlled communication ... |
human: What is How to create a ReAct agent from scratch (Functional API)?
bot: Prerequisites This guide assumes familiarity with the following: * * * * [Entrypoints](../../concepts/functional_api/#entrypoint) and [Tasks](../../concepts/functional_api/#task) This guide demonstrates how to implement a ReAct agent using... |
human: What are the key aspects of What LangGraph provides?
bot: LangGraph provides low-level supporting infrastructure that sits underneath _any_ workflow or agent. It does not abstract prompts or architecture, and provides three central benefits: |
human: What are the key aspects of Without disabling streaming?
bot: Now that we've defined our graph, let's try to call `astream_events` without disabling streaming. This should throw an error because the `o1` model does not support streaming natively: input = {"messages": {"role": "user", "content": "how many r's a... |
human: What are the key aspects of Comments?
bot: Back to top Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: How does Define AutoGen agent work?
bot: Here we define our AutoGen agent. Adapted from official tutorial . import autogen import os config_list = [{"model": "gpt-4o", "api_key": os.environ["OPENAI_API_KEY"]}] llm_config = { "timeout": 600, "cache_seed": 42, "config_list": config_list, "temperature": 0, } auto... |
human: What are the key aspects of Define graph?
bot: First, let's create a very simple graph import operator from typing import Annotated, Sequence from typing_extensions import TypedDict from langchain_anthropic import ChatAnthropic from langchain_core.messages import BaseMessage, HumanMessage from langgraph.graph ... |
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: What is Comments?
bot: Back to top [ Previous How to create a ReAct agent from scratch ](../react-agent-from-scratch/) [ Next How to Set Up a LangGraph Application for Deployment ](../../cloud/deployment/setup/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Tell me about Comments.
bot: Back to top [ Previous How to combine control flow and state updates with Command ](../command/) [ Next How to add node retry policies ](../node-retries/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Tell me about Graphs.
bot: When you deploy a graph with LangGraph Server, you are deploying a "blueprint" for an [Assistant](../assistants/). An [Assistant](../assistants/) is a graph paired with specific configuration settings. You can create multiple assistants per graph, each with unique settings to accommo... |
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: Can you explain Use async connection?
bot: async with AsyncRedisSaver.from_conn_info( host="localhost", port=6379, db=0 ) as checkpointer: graph = create_react_agent(model, tools=tools, checkpointer=checkpointer) config = {"configurable": {"thread_id": "2"}} res = await graph.ainvoke( {"messages": [("human", "... |
human: What is Launch LangGraph Server?
bot: langgraph dev This will start up the LangGraph API server locally. If this runs successfully, you should see something like: > Ready! > > * API: > > * Docs: > > * LangGraph Studio Web UI: > > In-Memory Mode The `langgraph dev` command starts LangGraph Server in an in-memor... |
human: How does Resources work?
bot: For more information on assistants, see the following resources: * [Assistants how-to guides](../../how-tos/#assistants) 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: What are the key aspects of Related?
bot: * [LangGraph CLI API Reference](../../cloud/reference/cli/) 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 Setup work?
bot: First, let's build a simple graph that uses messages. Note that it's using the `MessagesState` which has the required `reducer`. %%capture --no-stderr %pip install --quiet -U langgraph langchain_anthropic Next, we need to set API keys for Anthropic (the LLM we will use) import getpass... |
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 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 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 Next Steps work?
bot: Now that you have a LangGraph app running locally, take your journey further by exploring deployment and advanced features: |
human: Tell me about Authentication & Access Control.
bot: * [How to add custom authentication](auth/custom_auth/) * [How to update the security schema of your OpenAPI spec](auth/openapi_security/) |
human: How does How to build a multi-agent network (functional API) work?
bot: Prerequisites This guide assumes familiarity with the following: * [Multi-agent systems](../../concepts/multi_agent) * [Functional API](../../concepts/functional_api) * [Command](../../concepts/low_level/#command) * [LangGraph Glossary](..... |
human: Can you explain Comments?
bot: Back to top [ Previous How to wait for user input (Functional API) ](../wait-user-input-functional/) [ Next How to stream ](../streaming/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What are the key aspects of Define and use the graph?
bot: from langgraph.graph import StateGraph, START, END from typing_extensions import TypedDict # Define the schema for the input class InputState(TypedDict): question: str # Define the schema for the output class OutputState(TypedDict): answer: str # Defin... |
human: Can you explain Modifying the API?
bot: * [How to add custom routes](http/custom_routes/) * [How to add custom middleware](http/custom_middleware/) * [How to add custom lifespan events](http/custom_lifespan/) |
human: How does Evaluator-optimizer work?
bot: In the evaluator-optimizer workflow, one LLM call generates a response while another provides evaluation and feedback in a loop: > In the evaluator-optimizer workflow, one LLM call generates a response while another provides evaluation and feedback in a loop. > > When to... |
human: Tell me about Versions.
bot: There are two versions of the self-hosted deployment: [Self-Hosted Enterprise](../deployment_options/#self-hosted-enterprise) and [Self-Hosted Lite](../deployment_options/#self-hosted-lite). |
human: How does Use graph work?
bot: Let's proceed with a simple invocation: from langchain_core.messages import HumanMessage result = graph.invoke({"messages": [HumanMessage("Hi")]}) result API Reference: {'messages': [HumanMessage(content='Hi', additional_kwargs={}, response_metadata={}), AIMessage(content='Hello!'... |
human: Tell me about Durable Execution.
bot: **Durable execution** is a technique in which a process or workflow saves its progress at key points, allowing it to pause and later resume exactly where it left off. This is particularly useful in scenarios that require [human-in-the-loop](../human_in_the_loop/), where us... |
human: What are the key aspects of How to add thread-level persistence (functional API)?
bot: Prerequisites This guide assumes familiarity with the following: * [Functional API](../../concepts/functional_api/) * [Persistence](../../concepts/persistence/) * [Memory](../../concepts/memory/) * Many AI applications need ... |
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 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: Tell me about Server Quickstart.
bot: * **[LangGraph Server Quickstart](../langgraph-platform/local-server)** : Launch a LangGraph server locally and interact with it using the REST API and LangGraph Studio Web UI. |
human: What is How do I reload the app??
bot: If you would like to reload the app, don't use Command+R as you might normally do. Instead, close and reopen the app for a full refresh. |
human: How does Setup work?
bot: %pip install autogen langgraph 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") OPENAI_API_KEY: |
human: How does Using Messages in your Graph work?
bot: In many cases, it is helpful to store prior conversation history as a list of messages in your graph state. To do so, we can add a key (channel) to the graph state that stores a list of `Message` objects and annotate it with a reducer function (see `messages` ke... |
human: Tell me about Learn More about LangGraph Platform.
bot: Expand your knowledge with these resources: * **[LangGraph Platform Concepts](../../../concepts/#langgraph-platform)** : Understand the foundational concepts of the LangGraph Platform. * **[LangGraph Platform How-to Guides](../../../how-tos/#langgraph-pla... |
human: Can you explain Is LangGraph Platform open source??
bot: No. LangGraph Platform is proprietary software. There is a free, self-hosted version of LangGraph Platform with access to basic features. The Cloud SaaS deployment option is free while in beta, but will eventually be a paid service. We will always give a... |
human: What are the key aspects of Reject?
bot: This is the simplest option, this just rejects any follow-up runs and does not allow double texting. See the [how-to guide](../../cloud/how-tos/reject_concurrent/) for configuring the reject double text option. |
human: Can you explain Comments?
bot: Back to top [ Previous How to implement handoffs between agents ](../agent-handoffs/) [ Next How to add multi-turn conversation in a multi-agent application ](../multi-agent-multi-turn-convo/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: How does How to stream data from within a tool work?
bot: Prerequisites This guide assumes familiarity with the following: * [Streaming](../../concepts/streaming/) * * If your graph calls tools that use LLMs or any other streaming APIs, you might want to surface partial results during the execution of the tool... |
human: What are the key aspects of Comments?
bot: Back to top [ Previous How to manage conversation history in a ReAct Agent ](../create-react-agent-manage-message-history/) [ Next How to create a ReAct agent from scratch (Functional API) ](../react-agent-from-scratch-functional/) Copyright (C) 2025 LangChain, Inc | ... |
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: Can you explain Rollback?
bot: This option interrupts the current execution AND rolls back all work done up until that point, including the original run input. It then sends the new user input in, basically as if it was the original input. See the [how-to guide](../../cloud/how-tos/rollback_concurrent/) for co... |
human: Tell me about Graphs.
bot: Use the `graphs` key in the LangGraph configuration file to specify which graphs will be available in the deployed LangGraph application. You can specify one or more graphs in the configuration file. Each graph is identified by a name (which should be unique) and a path for either: (... |
human: What are the key aspects of How to use Postgres checkpointer for persistence?
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 ti... |
human: Tell me about ReAct Agent.
bot: Let's set up a graph implementation of the . This agent takes some query as input, then repeatedly call tools until it has enough information to resolve the query. We'll be using prebuilt [`create_react_agent`](../../reference/prebuilt/#langgraph.prebuilt.chat_agent_executor.cre... |
human: Can you explain How to run graph nodes in parallel?
bot: In this example, we fan out from `Node A` to `B and C` and then fan in to `D`. With our state, . This will combine or accumulate values for the specific key in the State, rather than simply overwriting the existing value. For lists, this means concatenat... |
human: Tell me about Give feedback to a tool call.
bot: Sometimes, you may not want to execute a tool call, but you also may not want to ask the user to manually modify the tool call. In that case it may be better to get natural language feedback from the user. You can then insert this feedback as a mock **RESULT** o... |
human: Tell me about Comments.
bot: Back to top [ Previous How to build a multi-agent network (functional API) ](../multi-agent-network-functional/) [ Next How to use Pydantic model as graph state ](../state-model/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: What are the key aspects of How we use Redis?
bot: Redis is used in each LGP deployment as a way for server and queue workers to communicate, and to store ephemeral metadata, more details on both below. No user/run data is stored in Redis. |
human: What is Setup?
bot: First, let's install the required packages and set our API keys %%capture --no-stderr %pip install -U redis 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... |
human: How does Multi-agent Systems work?
bot: An [agent](../agentic_concepts/#agent-architectures) is _a system that uses an LLM to decide the control flow of an application_. As you develop these systems, they might grow more complex over time, making them harder to manage and scale. For example, you might run into... |
human: Can you explain Requirements?
bot: To use `interrupt` in your graph, you need to: 1. [**Specify a checkpointer**](../persistence/#checkpoints) to save the graph state after each step. 2. **Call`interrupt()`** in the appropriate place. See the Design Patterns section for examples. 3. **Run the graph** with a [*... |
human: What are the key aspects of Deploy to LangGraph Cloud?
bot: * **[LangGraph Cloud Quickstart](../../../cloud/quick_start/)** : Deploy your LangGraph app using LangGraph Cloud. |
human: Tell me about Comments.
bot: Back to top [ Previous How to return state before hitting recursion limit ](../return-when-recursion-limit-hits/) [ Next How to add thread-level persistence to a subgraph ](../subgraph-persistence/) Copyright (C) 2025 LangChain, Inc | Consent Preferences Made with |
human: Can you explain Usage?
bot: def print_stream(stream): """A utility to pretty print the stream.""" for s in stream: message = s["messages"][-1] if isinstance(message, tuple): print(message) else: message.pretty_print() from langchain_core.messages import HumanMessage config = {"configurable": {"thread_id": "42"... |
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 Persistence: Memory?
bot: LangGraph persistence layer supports conversational (short-term) memory and long-term memory. See of LangChain Academy: |
human: What is How to update graph state from nodes?
bot: This guide demonstrates how to define and update [state](../../concepts/low_level/#state) in LangGraph. We will demonstrate: 1. How to use state to define a graph's [schema](../../concepts/low_level/#schema) 2. How to use [reducers](../../concepts/low_level/#r... |
human: What is Define the graph?
bot: For this example we will use the . from langchain_openai import ChatOpenAI from typing import Literal from langgraph.prebuilt import create_react_agent from langchain_core.tools import tool # First we initialize the model we want to use. model = ChatOpenAI(model="gpt-4o", tempera... |
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: How does Setup work?
bot: First, let's install the required packages and set our API keys %%capture --no-stderr %pip install -U langchain_anthropic langchain_openai langgraph import getpass import os def _set_env(var: str): if not os.environ.get(var): os.environ[var] = getpass.getpass(f"{var}: ") _set_env("ANT... |
human: How does Define the graph work?
bot: Using Pydantic with LangChain This notebook uses Pydantic v2 `BaseModel`, which requires `langchain-core >= 0.3`. Using `langchain-core < 0.3` will result in errors due to mixing of Pydantic v1 and v2 `BaseModels`. import operator from typing import Annotated from typing_ex... |
human: Tell me about Checkpointer libraries.
bot: Under the hood, checkpointing is powered by checkpointer objects that conform to [BaseCheckpointSaver](../../reference/checkpoints/#langgraph.checkpoint.base.BaseCheckpointSaver) interface. LangGraph provides several checkpointer implementations, all implemented via s... |
human: What is Non-deterministic control flow?
bot: Operations that might give different results each time (like getting current time or random numbers) should be encapsulated in tasks to ensure that on resume, the same result is returned. * In a task: Get random number (5) interrupt resume (returns 5 again) ... * No... |
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: Can you explain Next steps?
bot: * Continue with the [Graph API Basics](../../how-tos/#graph-api-basics) guides. * See more detail on [state management](../../how-tos/#state-management). Was this page helpful? Thanks for your feedback! Thanks for your feedback! Please help us improve this page by adding to the... |
human: What is Define model and tools?
bot: Let's first define the tools and model we will use for our example. Here we will use a single place-holder tool that gets a description of the weather for a location. We will use an chat model for this example, but any model will suffice. from langchain_openai import ChatOp... |
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 API Reference?
bot: You can find the API reference for the SDKs here: * [Python SDK Reference](../../cloud/reference/sdk/python_sdk_ref/) * [JS/TS SDK Reference](../../cloud/reference/sdk/js_ts_sdk_ref/) |
human: What are the key aspects of Usage?
bot: To use our agent, we invoke it with a messages list. Based on our implementation, these can be LangChain objects or OpenAI-style dicts: user_message = {"role": "user", "content": "What's the weather in san francisco?"} print(user_message) for step in agent.stream([user_m... |
human: Tell me about Supervisor (tool-calling).
bot: In this variant of the supervisor architecture, we define individual agents as **tools** and use a tool-calling LLM in the supervisor node. This can be implemented as a [ReAct](../agentic_concepts/#react-implementation)-style agent with two nodes — an LLM node (sup... |
human: How does Setup work?
bot: First we need to install the packages required %%capture --no-stderr %pip install --quiet -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") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.