Skip to main content
In LangSmith Deployment, a thread is not explicitly associated with a particular agent. This means that you can run multiple agents on the same thread, which allows a different agent to continue from an initial agent’s progress. In this example, we will create two agents and then call them both on the same thread. You’ll see that the second agent will respond using information from the checkpoint generated in the thread by the first agent as context.

Setup

We can see that these agents are different:
Output:
Output:

Run assistants on thread

Run OpenAI assistant

We can now run the OpenAI assistant on the thread first.
Output:

Run default assistant

Now, we can run it on the default assistant and see that this second assistant is aware of the initial question, and can answer the question, “and you?”:
Output: