Reconcile Thread Tail
Safely replace the tail of a thread without changing append semantics.
Optional request fields:
matched_count(required int): Number of leading messages that still matchmessages(required array): Replacement tail messagesexpected_tail_ids(optional string[]): Current remote tail message IDs for optimistic concurrency
Path Parameters
thread_id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
[key: string]?any
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/threads/string/reconcile-tail" \ -H "Content-Type: application/json" \ -d '{}'{
"success": true,
"thread_id": "string",
"messages_replaced": 0,
"messages_added": 0,
"total_messages": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}