Put Checkpoint
client.checkpoints.put(CheckpointPutParams { checkpoint, checkpoint_id, thread_id, 4 more } body, RequestOptionsoptions?): CheckpointPutResponse { checkpoint_id, checkpoint_ns, thread_id }
POST/checkpoints/put
Put Checkpoint
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.put({
checkpoint: { foo: 'bar' },
checkpoint_id: 'checkpoint_id',
thread_id: 'thread_id',
});
console.log(response.checkpoint_id);{
"checkpoint_id": "checkpoint_id",
"checkpoint_ns": "checkpoint_ns",
"thread_id": "thread_id"
}Returns Examples
{
"checkpoint_id": "checkpoint_id",
"checkpoint_ns": "checkpoint_ns",
"thread_id": "thread_id"
}