feat: include compaction messages and handle new summary message types (#756)
This commit is contained in:
@@ -159,7 +159,10 @@ export async function getResumeData(
|
||||
try {
|
||||
const backfill = await client.conversations.messages.list(
|
||||
conversationId,
|
||||
{ limit: MESSAGE_HISTORY_LIMIT, order: "desc" },
|
||||
{
|
||||
limit: MESSAGE_HISTORY_LIMIT,
|
||||
order: "desc",
|
||||
},
|
||||
);
|
||||
return {
|
||||
pendingApproval: null,
|
||||
|
||||
@@ -72,6 +72,7 @@ export async function sendMessageStream(
|
||||
stream_tokens: opts.streamTokens ?? true,
|
||||
background: opts.background ?? true,
|
||||
client_tools: getClientToolsFromRegistry(),
|
||||
include_compaction_messages: true,
|
||||
},
|
||||
requestOptions,
|
||||
);
|
||||
@@ -81,10 +82,11 @@ export async function sendMessageStream(
|
||||
conversationId,
|
||||
{
|
||||
messages: messages,
|
||||
stream: true,
|
||||
streaming: true,
|
||||
stream_tokens: opts.streamTokens ?? true,
|
||||
background: opts.background ?? true,
|
||||
client_tools: getClientToolsFromRegistry(),
|
||||
include_compaction_messages: true,
|
||||
},
|
||||
requestOptions,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user