Skip to content

Put Writes

client.checkpoints.putWrites(CheckpointPutWritesParams { checkpoint_id, thread_id, writes, 2 more } body, RequestOptionsoptions?): void
POST/checkpoints/put-writes

Put Writes

ParametersExpand Collapse
body: CheckpointPutWritesParams { checkpoint_id, thread_id, writes, 2 more }
checkpoint_id: string
thread_id: string
writes: Array<Write>
blob: string
channel: string
idx: number
task_id: string
task_path?: string
type?: string | null
checkpoint_ns?: string
upsert?: boolean

Put Writes

import Agentex from 'agentex';

const client = new Agentex({
  apiKey: process.env['AGENTEX_SDK_API_KEY'], // This is the default and can be omitted
});

await client.checkpoints.putWrites({
  checkpoint_id: 'checkpoint_id',
  thread_id: 'thread_id',
  writes: [
    {
      blob: 'blob',
      channel: 'channel',
      idx: 0,
      task_id: 'task_id',
    },
  ],
});
Returns Examples