Skip to main content

chatSummary

@codebolt/codeboltjs


Variable: chatSummary

const chatSummary: {
summarize: (messages: {
content: string;
role: string;
}[], depth: number) => Promise<GetSummarizeResponse>;
summarizeAll: () => Promise<GetSummarizeAllResponse>;
};

Defined in: packages/codeboltjs/src/modules/history.ts:26

Object with methods for summarizing chat history. Provides functionality to create summaries of conversation history.

Type Declaration

NameTypeDescriptionDefined in
summarize()(messages: { content: string; role: string; }[], depth: number) => Promise<GetSummarizeResponse>Summarizes a specific part of the chat history.packages/codeboltjs/src/modules/history.ts:49
summarizeAll()() => Promise<GetSummarizeAllResponse>Summarizes the entire chat history.packages/codeboltjs/src/modules/history.ts:32