Pistis
API referenceChanging a session

Run a step again

POST
/sessions/{id}/retry

Runs one earlier tool call again, with the same tool and arguments, as a step of its own; the model sees its result on the next turn. Only while the session is idle. The same toolCallId and idempotencyKey run it once.

Authorization

bearer
headerAuthorizationBearer <token>

An API token

Path Parameters

id*string

A session id

Request Body

application/json
  1. body
toolCallId*string

An earlier step

idempotencyKey*string

Response Body

Running again

application/json
  1. response
toolCallId*string

The new step

Example Request
curl -X POST 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/retry' \  -H 'Content-Type: application/json' \  -d '{  "toolCallId": "call_1",  "idempotencyKey": "retry-1"}'
Example Response
{  "toolCallId": "string"}