Agents / TypeScript SDK
Release agent work order
Release an external coding agent work-order lease without submitting an artifact. Use this when the agent cannot complete the task so another worker can claim it. This does not launch or send anything.
pipeline.releaseAgentWorkOrderDeterministic operationParameters
workspaceIdOptional · string- Optional with an API key, inferred from the key.
workOrderIdRequired · string- See the input schema for this field.
claimTokenRequired · string- Lease token returned by claim-agent-work-order.
await pipeline.releaseAgentWorkOrder({
"workOrderId": "00000000-0000-4000-8000-000000000000",
"claimToken": "00000000-0000-4000-8000-000000000001"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"description": "Optional with an API key, inferred from the key."
},
"workOrderId": {
"type": "string"
},
"claimToken": {
"type": "string",
"description": "Lease token returned by claim-agent-work-order."
}
},
"required": [
"workOrderId",
"claimToken"
]
}