Get Checkpoint Tuple
client.checkpoints.getTuple(CheckpointGetTupleParams { thread_id, checkpoint_id, checkpoint_ns } body, RequestOptionsoptions?): CheckpointGetTupleResponse { checkpoint, checkpoint_id, checkpoint_ns, 5 more } | null
POST/checkpoints/get-tuple
Get Checkpoint Tuple
import Agentex from 'agentex';
const client = new Agentex({
apiKey: process.env['AGENTEX_SDK_API_KEY'], // This is the default and can be omitted
});
const response = await client.checkpoints.getTuple({ thread_id: 'thread_id' });
console.log(response.checkpoint_id);{
"checkpoint": {
"foo": "bar"
},
"checkpoint_id": "checkpoint_id",
"checkpoint_ns": "checkpoint_ns",
"metadata": {
"foo": "bar"
},
"thread_id": "thread_id",
"blobs": [
{
"channel": "channel",
"type": "type",
"version": "version",
"blob": "blob"
}
],
"parent_checkpoint_id": "parent_checkpoint_id",
"pending_writes": [
{
"channel": "channel",
"idx": 0,
"task_id": "task_id",
"blob": "blob",
"type": "type"
}
]
}Returns Examples
{
"checkpoint": {
"foo": "bar"
},
"checkpoint_id": "checkpoint_id",
"checkpoint_ns": "checkpoint_ns",
"metadata": {
"foo": "bar"
},
"thread_id": "thread_id",
"blobs": [
{
"channel": "channel",
"type": "type",
"version": "version",
"blob": "blob"
}
],
"parent_checkpoint_id": "parent_checkpoint_id",
"pending_writes": [
{
"channel": "channel",
"idx": 0,
"task_id": "task_id",
"blob": "blob",
"type": "type"
}
]
}