Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.smith.langchain.com/v1/deepagents/threads/{threadID}/runs/stream \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"agent_id": "11111111-1111-1111-1111-111111111111",
"messages": [
{
"role": "user",
"content": "Research recent approaches to agent memory and summarize the main tradeoffs."
}
],
"stream_mode": [
"updates"
],
"stream_subgraphs": true,
"user_timezone": "America/Los_Angeles"
}
'"<string>"Start a run on a thread and stream output as server-sent events. The request must use agent_id; assistant_id is reserved for server-side forwarding and is rejected.
curl --request POST \
--url https://api.smith.langchain.com/v1/deepagents/threads/{threadID}/runs/stream \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"agent_id": "11111111-1111-1111-1111-111111111111",
"messages": [
{
"role": "user",
"content": "Research recent approaches to agent memory and summarize the main tradeoffs."
}
],
"stream_mode": [
"updates"
],
"stream_subgraphs": true,
"user_timezone": "America/Los_Angeles"
}
'"<string>"Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Thread ID.
Managed Deep Agent ID. The server forwards this upstream as assistant_id.
Input messages for the run.
1Show child attributes
Stream modes to return.
values, updates, messages-tuple Whether to stream subgraph events.
User timezone for runtime context.
"America/Los_Angeles"
Server-sent event stream.
The response is of type string.
Was this page helpful?