🚀 Share how you're building agents for a chance to win LangChain swag!
curl --request POST \
--url https://api.example.com/threads/{thread_id}/state/checkpoint \
--header 'Content-Type: application/json' \
--data '
{
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"subgraphs": true
}
'{
"values": [
{}
],
"next": [
"<string>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"created_at": "<string>",
"tasks": [
{
"id": "<string>",
"name": "<string>",
"error": "<string>",
"interrupts": [
{
"value": {},
"id": "<string>"
}
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": "<unknown>"
}
],
"parent_checkpoint": {},
"interrupts": [
{
"value": {},
"id": "<string>"
}
]
}Get state for a thread at a specific checkpoint.
curl --request POST \
--url https://api.example.com/threads/{thread_id}/state/checkpoint \
--header 'Content-Type: application/json' \
--data '
{
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"subgraphs": true
}
'{
"values": [
{}
],
"next": [
"<string>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"created_at": "<string>",
"tasks": [
{
"id": "<string>",
"name": "<string>",
"error": "<string>",
"interrupts": [
{
"value": {},
"id": "<string>"
}
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": "<unknown>"
}
],
"parent_checkpoint": {},
"interrupts": [
{
"value": {},
"id": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-lschan-1765567880-b1c8e16.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The ID of the thread.
If true, includes subgraph states.
Success
Checkpoint config.
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?