Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.example.com/runs/cancel \
--header 'Content-Type: application/json' \
--data '
{
"status": "pending",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"detail": "<string>"
}Cancel one or more runs. Can cancel runs by thread ID and run IDs, or by status filter.
curl --request POST \
--url https://api.example.com/runs/cancel \
--header 'Content-Type: application/json' \
--data '
{
"status": "pending",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"detail": "<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.
Action to take when cancelling the run. Possible values are interrupt or rollback. interrupt will simply cancel the run. rollback will cancel the run and delete the run and associated checkpoints afterwards.
interrupt, rollback Payload for cancelling runs.
Success - Runs cancelled
Was this page helpful?