File tree Expand file tree Collapse file tree 3 files changed +675
-319
lines changed
Expand file tree Collapse file tree 3 files changed +675
-319
lines changed Original file line number Diff line number Diff line change 11import { isAIMessageChunk } from "@langchain/core/messages" ;
22import { ChatGoogleGenerativeAI } from "@langchain/google-genai" ;
3- import { MemorySaver } from "@langchain/langgraph-checkpoint" ;
4- import { CordovaSqliteCheckpointSaver } from "./checkpoint" ;
53import { createReactAgent } from "@langchain/langgraph/prebuilt" ;
64import confirm from "dialogs/confirm" ;
75import select from "dialogs/select" ;
@@ -19,6 +17,7 @@ import {
1917 getMessagesForConversation ,
2018 updateConversation ,
2119} from "./db" ;
20+ import { CordovaSqliteSaver } from "./memory" ;
2221import { SYSTEM_PROMPT } from "./system_prompt" ;
2322
2423export default function openAIAssistantPage ( ) {
@@ -42,7 +41,7 @@ export default function openAIAssistantPage() {
4241 const searchTool = {
4342 googleSearch : { } ,
4443 } ;
45- const agentCheckpointer = new CordovaSqliteCheckpointSaver ( ) ;
44+ const agentCheckpointer = new CordovaSqliteSaver ( ) ;
4645 const model = new ChatGoogleGenerativeAI ( {
4746 model : "gemini-2.0-flash" ,
4847 apiKey : GEMINI_API_KEY ,
You can’t perform that action at this time.
0 commit comments