fix: migrate default conversation API usage to SDK 1.7.11 pattern (#1256)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
cthomas
2026-03-03 22:48:49 -08:00
committed by GitHub
parent a44c16edc7
commit 4111c546d3
18 changed files with 116 additions and 110 deletions

View File

@@ -36,6 +36,7 @@ export interface BootstrapHandlerClient {
opts: {
limit: number;
order: "asc" | "desc";
agent_id?: string;
before?: string;
after?: string;
},
@@ -99,7 +100,7 @@ export async function handleBootstrapSessionState(
const listStart = Date.now();
const page = await client.conversations.messages.list(
route.conversationId,
{ limit, order },
{ limit, order, ...(route.agentId ? { agent_id: route.agentId } : {}) },
);
const items = page.getPaginatedItems();
const listEnd = Date.now();