[{"data":1,"prerenderedAt":2492},["ShallowReactive",2],{"\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Fcontinuous_dialogue":3,"surround-\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Fcontinuous_dialogue":2483},{"id":4,"title":5,"avatar":6,"banner":6,"body":7,"category":6,"desc":2476,"description":52,"extension":2477,"links":6,"meta":2478,"navigation":6,"path":2479,"seo":2480,"stem":2481,"__hash__":2482},"docs\u002Fen\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Fcontinuous_dialogue.md","Continuous Dialogue",null,{"type":8,"value":9,"toc":2461},"minimark",[10,15,19,42,45,49,58,61,95,97,101,106,697,699,703,1036,1038,1042,1045,1048,1050,1054,1057,1068,1070,1074,1168,1170,1174,1285,1297,2212,2214,2218,2346,2348,2352,2457],[11,12,14],"h2",{"id":13},"_1-when-to-use-the-chat-interface","1. When to Use the Chat Interface",[16,17,18],"p",{},"The Chat interface provided by MemOS supports end-to-end conversation message input and output, enabling you to achieve:",[20,21,22,30,36],"ul",{},[23,24,25,29],"li",{},[26,27,28],"strong",{},"Integrated Conversational AI",": Complete a conversation by calling a single interface with the user's current message, without building complex pipelines.",[23,31,32,35],{},[26,33,34],{},"Automatic Memory Processing",": MemOS automatically extracts, updates, and retrieves memories, requiring no manual maintenance and ensuring no important details are missed.",[23,37,38,41],{},[26,39,40],{},"Persistent \"Context\"",": Maintain coherent understanding across turns, days, and even sessions, allowing the model to continuously \"remember\" the user.",[43,44],"br",{},[11,46,48],{"id":47},"_2-how-it-works","2. How It Works",[50,51,53],"h1",{"id":52},"",[54,55],"img",{"alt":56,"src":57},"chat_interface_process.png","https:\u002F\u002Fcdn.memtensor.com.cn\u002Fimg\u002F1767784468613_46u5xe_compressed.png",[16,59,60],{},"The figure above illustrates the complete interaction process between the end user, your AI application, and MemOS:",[62,63,64,72,75,89,92],"ol",{},[23,65,66,67,71],{},"If there are historical user messages, you can first call the ",[68,69,70],"code",{},"add\u002Fmessage"," interface to write them into MemOS.",[23,73,74],{},"When the end user sends a message, your AI application calls the Chat interface, passing in the user message and relevant parameters.",[23,76,77,78],{},"Upon receiving the request, MemOS sequentially completes the following processing:",[20,79,80,83,86],{},[23,81,82],{},"Recalls historical memories related to the current user message;",[23,84,85],{},"Assembles custom instructions, current session context, and recalled user memories into a complete Prompt;",[23,87,88],{},"Calls the large model to generate a response and returns the result to your AI application.",[23,90,91],{},"After receiving the response, your AI application displays the content to the end user.",[23,93,94],{},"Simultaneously, MemOS processes the user message and model response in the background (asynchronously by default), processing and writing them into memory.",[43,96],{},[11,98,100],{"id":99},"_3-quick-start","3. Quick Start",[102,103,105],"h3",{"id":104},"add-historical-messages","Add Historical Messages",[107,108,112],"pre",{"className":109,"code":110,"language":111,"meta":52,"style":52},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\nimport requests\nimport json\n\n# Replace with your MemOS API Key\nos.environ[\"MEMOS_API_KEY\"] = \"YOUR_API_KEY\"\nos.environ[\"MEMOS_BASE_URL\"] = \"https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\"\n\ndata = {\n    \"user_id\": \"memos_user_123\",\n    \"conversation_id\": \"0610\",\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"I've booked a trip to Guangzhou for the summer vacation. What chain hotels are available for accommodation?\"},\n      {\"role\": \"assistant\", \"content\": \"You can consider [7 Days Inn, Ji Hotel, Hilton], etc.\"},\n      {\"role\": \"user\", \"content\": \"I'll choose 7 Days Inn\"},\n      {\"role\": \"assistant\", \"content\": \"Okay, let me know if you have any other questions.\"}\n    ]\n  }\nheaders = {\n  \"Content-Type\": \"application\u002Fjson\",\n  \"Authorization\": f\"Token {os.environ['MEMOS_API_KEY']}\"\n}\nurl = f\"{os.environ['MEMOS_BASE_URL']}\u002Fadd\u002Fmessage\"\n\nres = requests.post(url=url, headers=headers, data=json.dumps(data))\n\nprint(f\"result: {res.json()}\")\n","python",[68,113,114,127,135,143,150,157,198,227,232,244,268,289,304,348,387,425,464,470,476,486,508,553,558,593,598,659,664],{"__ignoreMap":52},[115,116,119,123],"span",{"class":117,"line":118},"line",1,[115,120,122],{"class":121},"s7zQu","import",[115,124,126],{"class":125},"sTEyZ"," os\n",[115,128,130,132],{"class":117,"line":129},2,[115,131,122],{"class":121},[115,133,134],{"class":125}," requests\n",[115,136,138,140],{"class":117,"line":137},3,[115,139,122],{"class":121},[115,141,142],{"class":125}," json\n",[115,144,146],{"class":117,"line":145},4,[115,147,149],{"emptyLinePlaceholder":148},true,"\n",[115,151,153],{"class":117,"line":152},5,[115,154,156],{"class":155},"sHwdD","# Replace with your MemOS API Key\n",[115,158,160,163,167,171,174,177,181,183,186,189,192,195],{"class":117,"line":159},6,[115,161,162],{"class":125},"os",[115,164,166],{"class":165},"sMK4o",".",[115,168,170],{"class":169},"swJcz","environ",[115,172,173],{"class":165},"[",[115,175,176],{"class":165},"\"",[115,178,180],{"class":179},"sfazB","MEMOS_API_KEY",[115,182,176],{"class":165},[115,184,185],{"class":165},"]",[115,187,188],{"class":165}," =",[115,190,191],{"class":165}," \"",[115,193,194],{"class":179},"YOUR_API_KEY",[115,196,197],{"class":165},"\"\n",[115,199,201,203,205,207,209,211,214,216,218,220,222,225],{"class":117,"line":200},7,[115,202,162],{"class":125},[115,204,166],{"class":165},[115,206,170],{"class":169},[115,208,173],{"class":165},[115,210,176],{"class":165},[115,212,213],{"class":179},"MEMOS_BASE_URL",[115,215,176],{"class":165},[115,217,185],{"class":165},[115,219,188],{"class":165},[115,221,191],{"class":165},[115,223,224],{"class":179},"https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1",[115,226,197],{"class":165},[115,228,230],{"class":117,"line":229},8,[115,231,149],{"emptyLinePlaceholder":148},[115,233,235,238,241],{"class":117,"line":234},9,[115,236,237],{"class":125},"data ",[115,239,240],{"class":165},"=",[115,242,243],{"class":165}," {\n",[115,245,247,250,253,255,258,260,263,265],{"class":117,"line":246},10,[115,248,249],{"class":165},"    \"",[115,251,252],{"class":179},"user_id",[115,254,176],{"class":165},[115,256,257],{"class":165},":",[115,259,191],{"class":165},[115,261,262],{"class":179},"memos_user_123",[115,264,176],{"class":165},[115,266,267],{"class":165},",\n",[115,269,271,273,276,278,280,282,285,287],{"class":117,"line":270},11,[115,272,249],{"class":165},[115,274,275],{"class":179},"conversation_id",[115,277,176],{"class":165},[115,279,257],{"class":165},[115,281,191],{"class":165},[115,283,284],{"class":179},"0610",[115,286,176],{"class":165},[115,288,267],{"class":165},[115,290,292,294,297,299,301],{"class":117,"line":291},12,[115,293,249],{"class":165},[115,295,296],{"class":179},"messages",[115,298,176],{"class":165},[115,300,257],{"class":165},[115,302,303],{"class":165}," [\n",[115,305,307,310,312,315,317,319,321,324,326,329,331,334,336,338,340,343,345],{"class":117,"line":306},13,[115,308,309],{"class":165},"      {",[115,311,176],{"class":165},[115,313,314],{"class":179},"role",[115,316,176],{"class":165},[115,318,257],{"class":165},[115,320,191],{"class":165},[115,322,323],{"class":179},"user",[115,325,176],{"class":165},[115,327,328],{"class":165},",",[115,330,191],{"class":165},[115,332,333],{"class":179},"content",[115,335,176],{"class":165},[115,337,257],{"class":165},[115,339,191],{"class":165},[115,341,342],{"class":179},"I've booked a trip to Guangzhou for the summer vacation. What chain hotels are available for accommodation?",[115,344,176],{"class":165},[115,346,347],{"class":165},"},\n",[115,349,351,353,355,357,359,361,363,366,368,370,372,374,376,378,380,383,385],{"class":117,"line":350},14,[115,352,309],{"class":165},[115,354,176],{"class":165},[115,356,314],{"class":179},[115,358,176],{"class":165},[115,360,257],{"class":165},[115,362,191],{"class":165},[115,364,365],{"class":179},"assistant",[115,367,176],{"class":165},[115,369,328],{"class":165},[115,371,191],{"class":165},[115,373,333],{"class":179},[115,375,176],{"class":165},[115,377,257],{"class":165},[115,379,191],{"class":165},[115,381,382],{"class":179},"You can consider [7 Days Inn, Ji Hotel, Hilton], etc.",[115,384,176],{"class":165},[115,386,347],{"class":165},[115,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,421,423],{"class":117,"line":389},15,[115,391,309],{"class":165},[115,393,176],{"class":165},[115,395,314],{"class":179},[115,397,176],{"class":165},[115,399,257],{"class":165},[115,401,191],{"class":165},[115,403,323],{"class":179},[115,405,176],{"class":165},[115,407,328],{"class":165},[115,409,191],{"class":165},[115,411,333],{"class":179},[115,413,176],{"class":165},[115,415,257],{"class":165},[115,417,191],{"class":165},[115,419,420],{"class":179},"I'll choose 7 Days Inn",[115,422,176],{"class":165},[115,424,347],{"class":165},[115,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,459,461],{"class":117,"line":427},16,[115,429,309],{"class":165},[115,431,176],{"class":165},[115,433,314],{"class":179},[115,435,176],{"class":165},[115,437,257],{"class":165},[115,439,191],{"class":165},[115,441,365],{"class":179},[115,443,176],{"class":165},[115,445,328],{"class":165},[115,447,191],{"class":165},[115,449,333],{"class":179},[115,451,176],{"class":165},[115,453,257],{"class":165},[115,455,191],{"class":165},[115,457,458],{"class":179},"Okay, let me know if you have any other questions.",[115,460,176],{"class":165},[115,462,463],{"class":165},"}\n",[115,465,467],{"class":117,"line":466},17,[115,468,469],{"class":165},"    ]\n",[115,471,473],{"class":117,"line":472},18,[115,474,475],{"class":165},"  }\n",[115,477,479,482,484],{"class":117,"line":478},19,[115,480,481],{"class":125},"headers ",[115,483,240],{"class":165},[115,485,243],{"class":165},[115,487,489,492,495,497,499,501,504,506],{"class":117,"line":488},20,[115,490,491],{"class":165},"  \"",[115,493,494],{"class":179},"Content-Type",[115,496,176],{"class":165},[115,498,257],{"class":165},[115,500,191],{"class":165},[115,502,503],{"class":179},"application\u002Fjson",[115,505,176],{"class":165},[115,507,267],{"class":165},[115,509,511,513,516,518,520,524,527,531,533,535,537,539,542,544,546,548,551],{"class":117,"line":510},21,[115,512,491],{"class":165},[115,514,515],{"class":179},"Authorization",[115,517,176],{"class":165},[115,519,257],{"class":165},[115,521,523],{"class":522},"spNyl"," f",[115,525,526],{"class":179},"\"Token ",[115,528,530],{"class":529},"sbssI","{",[115,532,162],{"class":125},[115,534,166],{"class":165},[115,536,170],{"class":169},[115,538,173],{"class":165},[115,540,541],{"class":165},"'",[115,543,180],{"class":179},[115,545,541],{"class":165},[115,547,185],{"class":165},[115,549,550],{"class":529},"}",[115,552,197],{"class":179},[115,554,556],{"class":117,"line":555},22,[115,557,463],{"class":165},[115,559,561,564,566,568,570,572,574,576,578,580,582,584,586,588,590],{"class":117,"line":560},23,[115,562,563],{"class":125},"url ",[115,565,240],{"class":165},[115,567,523],{"class":522},[115,569,176],{"class":179},[115,571,530],{"class":529},[115,573,162],{"class":125},[115,575,166],{"class":165},[115,577,170],{"class":169},[115,579,173],{"class":165},[115,581,541],{"class":165},[115,583,213],{"class":179},[115,585,541],{"class":165},[115,587,185],{"class":165},[115,589,550],{"class":529},[115,591,592],{"class":179},"\u002Fadd\u002Fmessage\"\n",[115,594,596],{"class":117,"line":595},24,[115,597,149],{"emptyLinePlaceholder":148},[115,599,601,604,606,609,611,615,618,622,624,626,628,631,633,636,638,641,643,646,648,651,653,656],{"class":117,"line":600},25,[115,602,603],{"class":125},"res ",[115,605,240],{"class":165},[115,607,608],{"class":125}," requests",[115,610,166],{"class":165},[115,612,614],{"class":613},"s2Zo4","post",[115,616,617],{"class":165},"(",[115,619,621],{"class":620},"sHdIc","url",[115,623,240],{"class":165},[115,625,621],{"class":613},[115,627,328],{"class":165},[115,629,630],{"class":620}," headers",[115,632,240],{"class":165},[115,634,635],{"class":613},"headers",[115,637,328],{"class":165},[115,639,640],{"class":620}," data",[115,642,240],{"class":165},[115,644,645],{"class":613},"json",[115,647,166],{"class":165},[115,649,650],{"class":613},"dumps",[115,652,617],{"class":165},[115,654,655],{"class":613},"data",[115,657,658],{"class":165},"))\n",[115,660,662],{"class":117,"line":661},26,[115,663,149],{"emptyLinePlaceholder":148},[115,665,667,670,672,675,678,680,683,685,687,690,692,694],{"class":117,"line":666},27,[115,668,669],{"class":613},"print",[115,671,617],{"class":165},[115,673,674],{"class":522},"f",[115,676,677],{"class":179},"\"result: ",[115,679,530],{"class":529},[115,681,682],{"class":613},"res",[115,684,166],{"class":165},[115,686,645],{"class":613},[115,688,689],{"class":165},"()",[115,691,550],{"class":529},[115,693,176],{"class":179},[115,695,696],{"class":165},")\n",[43,698],{},[102,700,702],{"id":701},"chat","Chat",[107,704,706],{"className":109,"code":705,"language":111,"meta":52,"style":52},"import os\nimport requests\nimport json\n\n# Replace with your MemOS API Key\nos.environ[\"MEMOS_API_KEY\"] = \"YOUR_API_KEY\"\nos.environ[\"MEMOS_BASE_URL\"] = \"https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\"\n\ndata = {\n  \"user_id\": \"memos_user_123\",\n  \"query\": \"I want to go out for the National Day holiday. Recommend a city I haven't been to and a hotel brand I haven't stayed at.\",\n  \"conversation_id\": \"0928\"\n}\nheaders = {\n  \"Content-Type\": \"application\u002Fjson\",\n  \"Authorization\": f\"Token {os.environ['MEMOS_API_KEY']}\"\n}\nurl = f\"{os.environ['MEMOS_BASE_URL']}\u002Fchat\"\n\nres = requests.post(url=url, headers=headers, data=json.dumps(data))\n\nprint(f\"result: {res.json()}\")\n",[68,707,708,714,720,726,730,734,760,786,790,798,816,836,853,857,865,883,919,923,956,960,1006,1010],{"__ignoreMap":52},[115,709,710,712],{"class":117,"line":118},[115,711,122],{"class":121},[115,713,126],{"class":125},[115,715,716,718],{"class":117,"line":129},[115,717,122],{"class":121},[115,719,134],{"class":125},[115,721,722,724],{"class":117,"line":137},[115,723,122],{"class":121},[115,725,142],{"class":125},[115,727,728],{"class":117,"line":145},[115,729,149],{"emptyLinePlaceholder":148},[115,731,732],{"class":117,"line":152},[115,733,156],{"class":155},[115,735,736,738,740,742,744,746,748,750,752,754,756,758],{"class":117,"line":159},[115,737,162],{"class":125},[115,739,166],{"class":165},[115,741,170],{"class":169},[115,743,173],{"class":165},[115,745,176],{"class":165},[115,747,180],{"class":179},[115,749,176],{"class":165},[115,751,185],{"class":165},[115,753,188],{"class":165},[115,755,191],{"class":165},[115,757,194],{"class":179},[115,759,197],{"class":165},[115,761,762,764,766,768,770,772,774,776,778,780,782,784],{"class":117,"line":200},[115,763,162],{"class":125},[115,765,166],{"class":165},[115,767,170],{"class":169},[115,769,173],{"class":165},[115,771,176],{"class":165},[115,773,213],{"class":179},[115,775,176],{"class":165},[115,777,185],{"class":165},[115,779,188],{"class":165},[115,781,191],{"class":165},[115,783,224],{"class":179},[115,785,197],{"class":165},[115,787,788],{"class":117,"line":229},[115,789,149],{"emptyLinePlaceholder":148},[115,791,792,794,796],{"class":117,"line":234},[115,793,237],{"class":125},[115,795,240],{"class":165},[115,797,243],{"class":165},[115,799,800,802,804,806,808,810,812,814],{"class":117,"line":246},[115,801,491],{"class":165},[115,803,252],{"class":179},[115,805,176],{"class":165},[115,807,257],{"class":165},[115,809,191],{"class":165},[115,811,262],{"class":179},[115,813,176],{"class":165},[115,815,267],{"class":165},[115,817,818,820,823,825,827,829,832,834],{"class":117,"line":270},[115,819,491],{"class":165},[115,821,822],{"class":179},"query",[115,824,176],{"class":165},[115,826,257],{"class":165},[115,828,191],{"class":165},[115,830,831],{"class":179},"I want to go out for the National Day holiday. Recommend a city I haven't been to and a hotel brand I haven't stayed at.",[115,833,176],{"class":165},[115,835,267],{"class":165},[115,837,838,840,842,844,846,848,851],{"class":117,"line":291},[115,839,491],{"class":165},[115,841,275],{"class":179},[115,843,176],{"class":165},[115,845,257],{"class":165},[115,847,191],{"class":165},[115,849,850],{"class":179},"0928",[115,852,197],{"class":165},[115,854,855],{"class":117,"line":306},[115,856,463],{"class":165},[115,858,859,861,863],{"class":117,"line":350},[115,860,481],{"class":125},[115,862,240],{"class":165},[115,864,243],{"class":165},[115,866,867,869,871,873,875,877,879,881],{"class":117,"line":389},[115,868,491],{"class":165},[115,870,494],{"class":179},[115,872,176],{"class":165},[115,874,257],{"class":165},[115,876,191],{"class":165},[115,878,503],{"class":179},[115,880,176],{"class":165},[115,882,267],{"class":165},[115,884,885,887,889,891,893,895,897,899,901,903,905,907,909,911,913,915,917],{"class":117,"line":427},[115,886,491],{"class":165},[115,888,515],{"class":179},[115,890,176],{"class":165},[115,892,257],{"class":165},[115,894,523],{"class":522},[115,896,526],{"class":179},[115,898,530],{"class":529},[115,900,162],{"class":125},[115,902,166],{"class":165},[115,904,170],{"class":169},[115,906,173],{"class":165},[115,908,541],{"class":165},[115,910,180],{"class":179},[115,912,541],{"class":165},[115,914,185],{"class":165},[115,916,550],{"class":529},[115,918,197],{"class":179},[115,920,921],{"class":117,"line":466},[115,922,463],{"class":165},[115,924,925,927,929,931,933,935,937,939,941,943,945,947,949,951,953],{"class":117,"line":472},[115,926,563],{"class":125},[115,928,240],{"class":165},[115,930,523],{"class":522},[115,932,176],{"class":179},[115,934,530],{"class":529},[115,936,162],{"class":125},[115,938,166],{"class":165},[115,940,170],{"class":169},[115,942,173],{"class":165},[115,944,541],{"class":165},[115,946,213],{"class":179},[115,948,541],{"class":165},[115,950,185],{"class":165},[115,952,550],{"class":529},[115,954,955],{"class":179},"\u002Fchat\"\n",[115,957,958],{"class":117,"line":478},[115,959,149],{"emptyLinePlaceholder":148},[115,961,962,964,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1000,1002,1004],{"class":117,"line":488},[115,963,603],{"class":125},[115,965,240],{"class":165},[115,967,608],{"class":125},[115,969,166],{"class":165},[115,971,614],{"class":613},[115,973,617],{"class":165},[115,975,621],{"class":620},[115,977,240],{"class":165},[115,979,621],{"class":613},[115,981,328],{"class":165},[115,983,630],{"class":620},[115,985,240],{"class":165},[115,987,635],{"class":613},[115,989,328],{"class":165},[115,991,640],{"class":620},[115,993,240],{"class":165},[115,995,645],{"class":613},[115,997,166],{"class":165},[115,999,650],{"class":613},[115,1001,617],{"class":165},[115,1003,655],{"class":613},[115,1005,658],{"class":165},[115,1007,1008],{"class":117,"line":510},[115,1009,149],{"emptyLinePlaceholder":148},[115,1011,1012,1014,1016,1018,1020,1022,1024,1026,1028,1030,1032,1034],{"class":117,"line":555},[115,1013,669],{"class":613},[115,1015,617],{"class":165},[115,1017,674],{"class":522},[115,1019,677],{"class":179},[115,1021,530],{"class":529},[115,1023,682],{"class":613},[115,1025,166],{"class":165},[115,1027,645],{"class":613},[115,1029,689],{"class":165},[115,1031,550],{"class":529},[115,1033,176],{"class":179},[115,1035,696],{"class":165},[43,1037],{},[11,1039,1041],{"id":1040},"_4-usage-limits","4. Usage Limits",[16,1043,1044],{},"Interface Input Limit: 8,000 tokens.",[16,1046,1047],{},"Interface Output Limit: Retrieved memory count — 25 factual memories; 25 preference memories.",[43,1049],{},[11,1051,1053],{"id":1052},"_5-more-features","5. More Features",[16,1055,1056],{},"In addition to one-click copying of the quick start code above, this interface also provides a wealth of other configurable parameters. You can refer to the explanations of the following fields to call the Chat interface for conversation during use.",[1058,1059,1060],"note",{},[16,1061,1062,1063,166],{},"For a complete list of API fields, formats, etc., please see the ",[1064,1065,1067],"a",{"href":1066},"\u002Fapi_docs\u002Fchat\u002Fchat","Chat Interface Documentation",[43,1069],{},[102,1071,1073],{"id":1072},"filter-recalled-memories","Filter Recalled Memories",[1075,1076,1077,1100],"table",{},[1078,1079,1080],"thead",{},[1081,1082,1083,1090,1095],"tr",{},[1084,1085,1087],"th",{"align":1086},"left",[26,1088,1089],{},"Feature",[1084,1091,1092],{"align":1086},[26,1093,1094],{},"Field",[1084,1096,1097],{"align":1086},[26,1098,1099],{},"Description",[1101,1102,1103,1122,1149],"tbody",{},[1081,1104,1105,1109,1114],{},[1106,1107,1108],"td",{"align":1086},"Memory Filter",[1106,1110,1111],{"align":1086},[68,1112,1113],{},"filter",[1106,1115,1116,1117,166],{"align":1086},"Supports custom structured query conditions to precisely filter memories, see ",[1064,1118,1120],{"href":1119},"\u002Fmemos_cloud\u002Ffeatures\u002Fbasic\u002Ffilters",[26,1121,1108],{},[1081,1123,1124,1127,1143],{},[1106,1125,1126],{"align":1086},"Recall Preference Memories",[1106,1128,1129,1132,1134,1138,1140],{"align":1086},[68,1130,1131],{},"include_preference",[43,1133],{},[115,1135,1137],{"style":1136},"line-height:0.6;"," ",[43,1139],{},[68,1141,1142],{},"preference_limit_number",[1106,1144,1145,1146,1148],{"align":1086},"Preference memory is user preference information generated by MemOS based on analysis of user historical messages.",[43,1147],{},"When enabled, user preference memories can be recalled in retrieval results, \"understanding the user better\".",[1081,1150,1151,1154,1159],{},[1106,1152,1153],{"align":1086},"Retrieve Specific Knowledge Base",[1106,1155,1156],{"align":1086},[68,1157,1158],{},"knowledgebase_ids",[1106,1160,1161,1162,166],{"align":1086},"Specify the scope of project-associated knowledge bases available for this retrieval, see ",[1064,1163,1165],{"href":1164},"\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Fknowledge_base",[26,1166,1167],{},"Knowledge Base",[43,1169],{},[102,1171,1173],{"id":1172},"adjust-model-response","Adjust Model Response",[1075,1175,1176,1187],{},[1078,1177,1178],{},[1081,1179,1180,1182,1184],{},[1084,1181,1089],{"align":1086},[1084,1183,1094],{"align":1086},[1084,1185,1186],{"align":1086},"Description & Optional Values",[1101,1188,1189,1216,1227,1245,1259,1272],{},[1081,1190,1191,1194,1197],{},[1106,1192,1193],{"align":1086},"Select Model",[1106,1195,1196],{"align":1086},"model_name",[1106,1198,1199,1200,1206,1207,1209,1210,1212,1213,1215],{"align":1086},"Currently MemOS provides three models you can specify for responses. You can view detailed model introductions in ",[1064,1201,1205],{"href":1202,"rel":1203},"https:\u002F\u002Fmemos-dashboard.openmem.net\u002Fmodels\u002F",[1204],"nofollow","Console - Model List",". Optional model names:",[43,1208],{},"* qwen2.5-72b-instruct (Default)",[43,1211],{},"* qwen3-32b",[43,1214],{},"* deepseek-r1",[1081,1217,1218,1221,1224],{},[1106,1219,1220],{"align":1086},"Custom System Prompt",[1106,1222,1223],{"align":1086},"system_prompt",[1106,1225,1226],{"align":1086},"Supports developers to customize system prompts. Defaults to MemOS built-in instructions.",[1081,1228,1229,1232,1235],{},[1106,1230,1231],{"align":1086},"Stream\u002FNon-stream Response",[1106,1233,1234],{"align":1086},"stream",[1106,1236,1237,1238,1240,1241,1244],{"align":1086},"MemOS provides both streaming and non-streaming response modes. You can choose either mode based on your needs.",[43,1239],{},"Pass ",[68,1242,1243],{},"stream=true or false"," when calling the interface. The default output mode is: non-streaming output.",[1081,1246,1247,1250,1253],{},[1106,1248,1249],{"align":1086},"Key Parameters",[1106,1251,1252],{"align":1086},"temperature",[1106,1254,1255,1256,1258],{"align":1086},"Controls the randomness of model generated content. Lower values make the answer more stable and closer to a fixed answer; higher values make the answer more divergent and diverse.",[43,1257],{},"Optional value range: 0-2, default temperature value: 0.7",[1081,1260,1261,1263,1266],{},[1106,1262],{"align":1086},[1106,1264,1265],{"align":1086},"top_p",[1106,1267,1268,1269,1271],{"align":1086},"Controls the range of candidate words available when the model generates content. Smaller values mean a narrower optional range and more convergent output; larger values mean a wider optional range and more diverse output.",[43,1270],{},"Optional value range: 0-1, default value: 0.95",[1081,1273,1274,1276,1279],{},[1106,1275],{"align":1086},[1106,1277,1278],{"align":1086},"max_tokens",[1106,1280,1281,1282,1284],{"align":1086},"Limits the maximum length of content generated by the model. Larger values allow longer generated content; generation stops when the limit is reached.",[43,1283],{},"Default value: 8192",[1058,1286,1287],{},[16,1288,1289,1290,1292,1293,1296],{},"If you want the model to better reference memory when answering, you can refer to the current MemOS default instructions when building ",[68,1291,1223],{},". As shown below, where ",[68,1294,1295],{},"\u003Cmemories>"," is the memory placeholder, which you can retain.",[107,1298,1300],{"className":109,"code":1299,"language":111,"meta":52,"style":52},"# Role\nYou are an intelligent assistant with long-term memory capabilities (MemOS Assistant). Your goal is to combine retrieved memory fragments to provide the user with highly personalized, accurate, and logically rigorous answers.\n\n# System Context\n- Current time: 2025-12-16 15:51 (Please use this as the baseline for judging memory timeliness)\n\n# Memory Data\nHere is relevant information retrieved by MemOS, divided into \"Facts\" and \"Preferences\".\n- **Facts**: May include user attributes, historical conversation records, or third-party information.\n  - **Special Note**: Content marked with `[assistant view]`, `[model summary]` represents **past inferences by AI**, and is **NOT** the user's original words.\n- **Preferences**: User's explicit\u002Fimplicit requirements for answer style, format, or logic.\n\n\u003Cmemories>\n{memories}\n\u003C\u002Fmemories>\n\n# Critical Protocol: Memory Safety\nRetrieved memories may contain **AI's own speculations**, **irrelevant noise**, or **subject errors**. You must strictly execute the following **\"Four-Step Verdict\"**, and if any step fails, **discard** that memory:\n\n1. **Source Verification**:\n   - **Core**: Distinguish between \"user original words\" and \"AI speculation\".\n   - If a memory carries tags like `[assistant view]`, this only represents the AI's past **hypothesis** and **must not** be treated as absolute fact from the user.\n   - *Counter-example*: Memory shows `[assistant view] User loves mangoes`. If the user didn't mention it, do not proactively assume the user likes mangoes to prevent circular hallucinations.\n   - **Principle: AI summaries are for reference only, with significantly lower weight than the user's direct statements.**\n\n2. **Attribution Check**:\n   - Is the subject of the behavior in the memory \"the user themselves\"?\n   - If the memory describes a **third party** (such as \"candidate\", \"interviewee\", \"fictional character\", \"case data\"), **strictly forbid** attributing its attributes to the user.\n\n3. **Relevance Check**:\n   - Does the memory directly help answer the current `Original Query`?\n   - If the memory is just a keyword match (e.g., both mention \"code\") but the context is completely different, **must ignore**.\n\n4. **Freshness Check**:\n   - Does the memory content conflict with the user's latest intent? Take the current `Original Query` as the highest factual standard.\n\n# Instructions\n1. **Review**: First read `\u003Cfacts>`, execute the \"Four-Step Verdict\", and eliminate noise and unreliable AI views.\n2. **Execute**:\n   - Only use filtered memories to supplement background.\n   - Strictly abide by style requirements in `\u003Cpreferences>`.\n3. **Output**: Answer the question directly, **strictly forbid** mentioning system internal terms like \"memory bank\", \"retrieval\", or \"AI view\".\n",[68,1301,1302,1307,1368,1372,1377,1425,1429,1434,1467,1502,1575,1593,1597,1608,1616,1625,1629,1634,1649,1653,1668,1701,1726,1769,1801,1805,1819,1842,1913,1918,1933,1947,2006,2011,2026,2043,2048,2054,2108,2122,2132,2155],{"__ignoreMap":52},[115,1303,1304],{"class":117,"line":118},[115,1305,1306],{"class":155},"# Role\n",[115,1308,1309,1312,1315,1318,1321,1324,1327,1329,1332,1335,1338,1341,1344,1347,1349,1352,1354,1357,1359,1362,1365],{"class":117,"line":129},[115,1310,1311],{"class":125},"You are an intelligent assistant ",[115,1313,1314],{"class":121},"with",[115,1316,1317],{"class":125}," long",[115,1319,1320],{"class":165},"-",[115,1322,1323],{"class":125},"term memory ",[115,1325,1326],{"class":613},"capabilities ",[115,1328,617],{"class":165},[115,1330,1331],{"class":613},"MemOS Assistant",[115,1333,1334],{"class":165},").",[115,1336,1337],{"class":169}," Your",[115,1339,1340],{"class":125}," goal ",[115,1342,1343],{"class":165},"is",[115,1345,1346],{"class":125}," to combine retrieved memory fragments to provide the user ",[115,1348,1314],{"class":121},[115,1350,1351],{"class":125}," highly personalized",[115,1353,328],{"class":165},[115,1355,1356],{"class":125}," accurate",[115,1358,328],{"class":165},[115,1360,1361],{"class":165}," and",[115,1363,1364],{"class":125}," logically rigorous answers",[115,1366,1367],{"class":165},".\n",[115,1369,1370],{"class":117,"line":137},[115,1371,149],{"emptyLinePlaceholder":148},[115,1373,1374],{"class":117,"line":145},[115,1375,1376],{"class":155},"# System Context\n",[115,1378,1379,1381,1384,1386,1389,1391,1394,1396,1399,1402,1404,1407,1410,1413,1416,1419,1422],{"class":117,"line":152},[115,1380,1320],{"class":165},[115,1382,1383],{"class":125}," Current time",[115,1385,257],{"class":165},[115,1387,1388],{"class":529}," 2025",[115,1390,1320],{"class":165},[115,1392,1393],{"class":529},"12",[115,1395,1320],{"class":165},[115,1397,1398],{"class":529},"16",[115,1400,1401],{"class":529}," 15",[115,1403,257],{"class":165},[115,1405,1406],{"class":529},"51",[115,1408,1409],{"class":165}," (",[115,1411,1412],{"class":125},"Please use this ",[115,1414,1415],{"class":121},"as",[115,1417,1418],{"class":125}," the baseline ",[115,1420,1421],{"class":121},"for",[115,1423,1424],{"class":125}," judging memory timeliness)\n",[115,1426,1427],{"class":117,"line":159},[115,1428,149],{"emptyLinePlaceholder":148},[115,1430,1431],{"class":117,"line":200},[115,1432,1433],{"class":155},"# Memory Data\n",[115,1435,1436,1439,1441,1444,1446,1449,1451,1454,1456,1458,1460,1463,1465],{"class":117,"line":229},[115,1437,1438],{"class":125},"Here ",[115,1440,1343],{"class":165},[115,1442,1443],{"class":125}," relevant information retrieved by MemOS",[115,1445,328],{"class":165},[115,1447,1448],{"class":125}," divided into ",[115,1450,176],{"class":165},[115,1452,1453],{"class":179},"Facts",[115,1455,176],{"class":165},[115,1457,1361],{"class":165},[115,1459,191],{"class":165},[115,1461,1462],{"class":179},"Preferences",[115,1464,176],{"class":165},[115,1466,1367],{"class":165},[115,1468,1469,1471,1474,1476,1479,1482,1484,1487,1489,1492,1495,1497,1500],{"class":117,"line":234},[115,1470,1320],{"class":165},[115,1472,1473],{"class":165}," **",[115,1475,1453],{"class":125},[115,1477,1478],{"class":165},"**:",[115,1480,1481],{"class":125}," May include user attributes",[115,1483,328],{"class":165},[115,1485,1486],{"class":125}," historical conversation records",[115,1488,328],{"class":165},[115,1490,1491],{"class":165}," or",[115,1493,1494],{"class":125}," third",[115,1496,1320],{"class":165},[115,1498,1499],{"class":125},"party information",[115,1501,1367],{"class":165},[115,1503,1504,1507,1509,1512,1514,1517,1519,1522,1524,1527,1529,1532,1534,1536,1538,1541,1543,1546,1549,1552,1555,1557,1560,1562,1565,1567,1570,1572],{"class":117,"line":246},[115,1505,1506],{"class":165},"  -",[115,1508,1473],{"class":165},[115,1510,1511],{"class":125},"Special Note",[115,1513,1478],{"class":165},[115,1515,1516],{"class":125}," Content marked ",[115,1518,1314],{"class":121},[115,1520,1521],{"class":125}," `",[115,1523,173],{"class":165},[115,1525,1526],{"class":125},"assistant view",[115,1528,185],{"class":165},[115,1530,1531],{"class":125},"`",[115,1533,328],{"class":165},[115,1535,1521],{"class":125},[115,1537,173],{"class":165},[115,1539,1540],{"class":125},"model summary",[115,1542,185],{"class":165},[115,1544,1545],{"class":125},"` represents ",[115,1547,1548],{"class":165},"**",[115,1550,1551],{"class":125},"past inferences by AI",[115,1553,1554],{"class":165},"**,",[115,1556,1361],{"class":165},[115,1558,1559],{"class":165}," is",[115,1561,1473],{"class":165},[115,1563,1564],{"class":125},"NOT",[115,1566,1548],{"class":165},[115,1568,1569],{"class":125}," the user",[115,1571,541],{"class":165},[115,1573,1574],{"class":179},"s original words.\n",[115,1576,1577,1579,1581,1583,1585,1588,1590],{"class":117,"line":270},[115,1578,1320],{"class":165},[115,1580,1473],{"class":165},[115,1582,1462],{"class":125},[115,1584,1478],{"class":165},[115,1586,1587],{"class":125}," User",[115,1589,541],{"class":165},[115,1591,1592],{"class":179},"s explicit\u002Fimplicit requirements for answer style, format, or logic.\n",[115,1594,1595],{"class":117,"line":291},[115,1596,149],{"emptyLinePlaceholder":148},[115,1598,1599,1602,1605],{"class":117,"line":306},[115,1600,1601],{"class":165},"\u003C",[115,1603,1604],{"class":125},"memories",[115,1606,1607],{"class":165},">\n",[115,1609,1610,1612,1614],{"class":117,"line":350},[115,1611,530],{"class":165},[115,1613,1604],{"class":125},[115,1615,463],{"class":165},[115,1617,1618,1621,1623],{"class":117,"line":389},[115,1619,1620],{"class":165},"\u003C\u002F",[115,1622,1604],{"class":125},[115,1624,1607],{"class":165},[115,1626,1627],{"class":117,"line":427},[115,1628,149],{"emptyLinePlaceholder":148},[115,1630,1631],{"class":117,"line":466},[115,1632,1633],{"class":155},"# Critical Protocol: Memory Safety\n",[115,1635,1636,1639,1641,1644,1646],{"class":117,"line":472},[115,1637,1638],{"class":125},"Retrieved memories may contain ",[115,1640,1548],{"class":165},[115,1642,1643],{"class":125},"AI",[115,1645,541],{"class":165},[115,1647,1648],{"class":179},"s own speculations**, **irrelevant noise**, or **subject errors**. You must strictly execute the following **\"Four-Step Verdict\"**, and if any step fails, **discard** that memory:\n",[115,1650,1651],{"class":117,"line":478},[115,1652,149],{"emptyLinePlaceholder":148},[115,1654,1655,1658,1660,1662,1665],{"class":117,"line":488},[115,1656,1657],{"class":529},"1",[115,1659,166],{"class":165},[115,1661,1473],{"class":165},[115,1663,1664],{"class":125},"Source Verification",[115,1666,1667],{"class":165},"**:\n",[115,1669,1670,1673,1675,1678,1680,1683,1685,1688,1690,1692,1694,1697,1699],{"class":117,"line":510},[115,1671,1672],{"class":165},"   -",[115,1674,1473],{"class":165},[115,1676,1677],{"class":125},"Core",[115,1679,1478],{"class":165},[115,1681,1682],{"class":125}," Distinguish between ",[115,1684,176],{"class":165},[115,1686,1687],{"class":179},"user original words",[115,1689,176],{"class":165},[115,1691,1361],{"class":165},[115,1693,191],{"class":165},[115,1695,1696],{"class":179},"AI speculation",[115,1698,176],{"class":165},[115,1700,1367],{"class":165},[115,1702,1703,1705,1708,1710,1712,1714,1716,1718,1721,1723],{"class":117,"line":555},[115,1704,1672],{"class":165},[115,1706,1707],{"class":125}," If a memory carries tags like `",[115,1709,173],{"class":165},[115,1711,1526],{"class":125},[115,1713,185],{"class":165},[115,1715,1531],{"class":125},[115,1717,328],{"class":165},[115,1719,1720],{"class":125}," this only represents the AI",[115,1722,541],{"class":165},[115,1724,1725],{"class":179},"s past **hypothesis** and **must not** be treated as absolute fact from the user.\n",[115,1727,1728,1730,1733,1736,1738,1741,1744,1747,1749,1751,1753,1756,1758,1761,1764,1766],{"class":117,"line":560},[115,1729,1672],{"class":165},[115,1731,1732],{"class":165}," *",[115,1734,1735],{"class":125},"Counter",[115,1737,1320],{"class":165},[115,1739,1740],{"class":125},"example",[115,1742,1743],{"class":165},"*:",[115,1745,1746],{"class":125}," Memory shows `",[115,1748,173],{"class":165},[115,1750,1526],{"class":125},[115,1752,185],{"class":165},[115,1754,1755],{"class":125}," User loves mangoes`",[115,1757,166],{"class":165},[115,1759,1760],{"class":169}," If",[115,1762,1763],{"class":125}," the user didn",[115,1765,541],{"class":165},[115,1767,1768],{"class":179},"t mention it, do not proactively assume the user likes mangoes to prevent circular hallucinations.\n",[115,1770,1771,1773,1775,1778,1780,1783,1785,1788,1790,1793,1796,1798],{"class":117,"line":595},[115,1772,1672],{"class":165},[115,1774,1473],{"class":165},[115,1776,1777],{"class":125},"Principle",[115,1779,257],{"class":165},[115,1781,1782],{"class":125}," AI summaries are ",[115,1784,1421],{"class":121},[115,1786,1787],{"class":125}," reference only",[115,1789,328],{"class":165},[115,1791,1792],{"class":121}," with",[115,1794,1795],{"class":125}," significantly lower weight than the user",[115,1797,541],{"class":165},[115,1799,1800],{"class":179},"s direct statements.**\n",[115,1802,1803],{"class":117,"line":600},[115,1804,149],{"emptyLinePlaceholder":148},[115,1806,1807,1810,1812,1814,1817],{"class":117,"line":661},[115,1808,1809],{"class":529},"2",[115,1811,166],{"class":165},[115,1813,1473],{"class":165},[115,1815,1816],{"class":125},"Attribution Check",[115,1818,1667],{"class":165},[115,1820,1821,1823,1826,1829,1832,1834,1837,1839],{"class":117,"line":666},[115,1822,1672],{"class":165},[115,1824,1825],{"class":125}," Is the subject of the behavior ",[115,1827,1828],{"class":121},"in",[115,1830,1831],{"class":125}," the memory ",[115,1833,176],{"class":165},[115,1835,1836],{"class":179},"the user themselves",[115,1838,176],{"class":165},[115,1840,1841],{"class":125},"?\n",[115,1843,1845,1847,1850,1852,1855,1857,1859,1862,1864,1866,1869,1871,1873,1875,1878,1880,1882,1884,1887,1889,1891,1893,1896,1898,1901,1903,1906,1908,1911],{"class":117,"line":1844},28,[115,1846,1672],{"class":165},[115,1848,1849],{"class":125}," If the memory describes a ",[115,1851,1548],{"class":165},[115,1853,1854],{"class":125},"third party",[115,1856,1548],{"class":165},[115,1858,1409],{"class":165},[115,1860,1861],{"class":125},"such ",[115,1863,1415],{"class":121},[115,1865,191],{"class":165},[115,1867,1868],{"class":179},"candidate",[115,1870,176],{"class":165},[115,1872,328],{"class":165},[115,1874,191],{"class":165},[115,1876,1877],{"class":179},"interviewee",[115,1879,176],{"class":165},[115,1881,328],{"class":165},[115,1883,191],{"class":165},[115,1885,1886],{"class":179},"fictional character",[115,1888,176],{"class":165},[115,1890,328],{"class":165},[115,1892,191],{"class":165},[115,1894,1895],{"class":179},"case data",[115,1897,176],{"class":165},[115,1899,1900],{"class":165},"),",[115,1902,1473],{"class":165},[115,1904,1905],{"class":125},"strictly forbid",[115,1907,1548],{"class":165},[115,1909,1910],{"class":125}," attributing its attributes to the user",[115,1912,1367],{"class":165},[115,1914,1916],{"class":117,"line":1915},29,[115,1917,149],{"emptyLinePlaceholder":148},[115,1919,1921,1924,1926,1928,1931],{"class":117,"line":1920},30,[115,1922,1923],{"class":529},"3",[115,1925,166],{"class":165},[115,1927,1473],{"class":165},[115,1929,1930],{"class":125},"Relevance Check",[115,1932,1667],{"class":165},[115,1934,1936,1938,1941,1944],{"class":117,"line":1935},31,[115,1937,1672],{"class":165},[115,1939,1940],{"class":125}," Does the memory directly ",[115,1942,1943],{"class":613},"help",[115,1945,1946],{"class":125}," answer the current `Original Query`?\n",[115,1948,1950,1952,1955,1957,1960,1963,1965,1968,1970,1973,1976,1979,1981,1983,1985,1988,1991,1993,1996,1998,2000,2003],{"class":117,"line":1949},32,[115,1951,1672],{"class":165},[115,1953,1954],{"class":125}," If the memory ",[115,1956,1343],{"class":165},[115,1958,1959],{"class":125}," just a keyword ",[115,1961,1962],{"class":613},"match ",[115,1964,617],{"class":165},[115,1966,1967],{"class":613},"e",[115,1969,166],{"class":165},[115,1971,1972],{"class":169},"g",[115,1974,1975],{"class":165},".,",[115,1977,1978],{"class":613}," both mention ",[115,1980,176],{"class":165},[115,1982,68],{"class":179},[115,1984,176],{"class":165},[115,1986,1987],{"class":165},")",[115,1989,1990],{"class":125}," but the context ",[115,1992,1343],{"class":165},[115,1994,1995],{"class":125}," completely different",[115,1997,328],{"class":165},[115,1999,1473],{"class":165},[115,2001,2002],{"class":125},"must ignore",[115,2004,2005],{"class":165},"**.\n",[115,2007,2009],{"class":117,"line":2008},33,[115,2010,149],{"emptyLinePlaceholder":148},[115,2012,2014,2017,2019,2021,2024],{"class":117,"line":2013},34,[115,2015,2016],{"class":529},"4",[115,2018,166],{"class":165},[115,2020,1473],{"class":165},[115,2022,2023],{"class":125},"Freshness Check",[115,2025,1667],{"class":165},[115,2027,2029,2031,2034,2036,2038,2040],{"class":117,"line":2028},35,[115,2030,1672],{"class":165},[115,2032,2033],{"class":125}," Does the memory content conflict ",[115,2035,1314],{"class":121},[115,2037,1569],{"class":125},[115,2039,541],{"class":165},[115,2041,2042],{"class":179},"s latest intent? Take the current `Original Query` as the highest factual standard.\n",[115,2044,2046],{"class":117,"line":2045},36,[115,2047,149],{"emptyLinePlaceholder":148},[115,2049,2051],{"class":117,"line":2050},37,[115,2052,2053],{"class":155},"# Instructions\n",[115,2055,2057,2059,2061,2063,2066,2068,2071,2073,2076,2079,2081,2083,2086,2088,2091,2093,2095,2097,2100,2103,2106],{"class":117,"line":2056},38,[115,2058,1657],{"class":529},[115,2060,166],{"class":165},[115,2062,1473],{"class":165},[115,2064,2065],{"class":125},"Review",[115,2067,1478],{"class":165},[115,2069,2070],{"class":125}," First read `",[115,2072,1601],{"class":165},[115,2074,2075],{"class":125},"facts",[115,2077,2078],{"class":165},">",[115,2080,1531],{"class":125},[115,2082,328],{"class":165},[115,2084,2085],{"class":125}," execute the ",[115,2087,176],{"class":165},[115,2089,2090],{"class":179},"Four-Step Verdict",[115,2092,176],{"class":165},[115,2094,328],{"class":165},[115,2096,1361],{"class":165},[115,2098,2099],{"class":125}," eliminate noise ",[115,2101,2102],{"class":165},"and",[115,2104,2105],{"class":125}," unreliable AI views",[115,2107,1367],{"class":165},[115,2109,2111,2113,2115,2117,2120],{"class":117,"line":2110},39,[115,2112,1809],{"class":529},[115,2114,166],{"class":165},[115,2116,1473],{"class":165},[115,2118,2119],{"class":125},"Execute",[115,2121,1667],{"class":165},[115,2123,2125,2127,2130],{"class":117,"line":2124},40,[115,2126,1672],{"class":165},[115,2128,2129],{"class":125}," Only use filtered memories to supplement background",[115,2131,1367],{"class":165},[115,2133,2135,2137,2140,2142,2144,2146,2149,2151,2153],{"class":117,"line":2134},41,[115,2136,1672],{"class":165},[115,2138,2139],{"class":125}," Strictly abide by style requirements ",[115,2141,1828],{"class":121},[115,2143,1521],{"class":125},[115,2145,1601],{"class":165},[115,2147,2148],{"class":125},"preferences",[115,2150,2078],{"class":165},[115,2152,1531],{"class":125},[115,2154,1367],{"class":165},[115,2156,2158,2160,2162,2164,2167,2169,2172,2174,2176,2178,2180,2183,2185,2188,2190,2192,2194,2197,2199,2201,2203,2205,2208,2210],{"class":117,"line":2157},42,[115,2159,1923],{"class":529},[115,2161,166],{"class":165},[115,2163,1473],{"class":165},[115,2165,2166],{"class":125},"Output",[115,2168,1478],{"class":165},[115,2170,2171],{"class":125}," Answer the question directly",[115,2173,328],{"class":165},[115,2175,1473],{"class":165},[115,2177,1905],{"class":125},[115,2179,1548],{"class":165},[115,2181,2182],{"class":125}," mentioning system internal terms like ",[115,2184,176],{"class":165},[115,2186,2187],{"class":179},"memory bank",[115,2189,176],{"class":165},[115,2191,328],{"class":165},[115,2193,191],{"class":165},[115,2195,2196],{"class":179},"retrieval",[115,2198,176],{"class":165},[115,2200,328],{"class":165},[115,2202,1491],{"class":165},[115,2204,191],{"class":165},[115,2206,2207],{"class":179},"AI view",[115,2209,176],{"class":165},[115,2211,1367],{"class":165},[43,2213],{},[102,2215,2217],{"id":2216},"one-click-add-message-process-as-memory","One-click Add Message, Process as Memory",[1075,2219,2220,2230],{},[1078,2221,2222],{},[1081,2223,2224,2226,2228],{},[1084,2225,1089],{"align":1086},[1084,2227,1094],{"align":1086},[1084,2229,1186],{"align":1086},[1101,2231,2232,2251,2273,2289,2307,2320,2333],{},[1081,2233,2234,2237,2242],{},[1106,2235,2236],{"align":1086},"Enable this feature",[1106,2238,2239],{"align":1086},[68,2240,2241],{},"add_message_on_answer",[1106,2243,2244,2245,1240,2247,2250],{"align":1086},"When this feature is enabled, MemOS automatically stores user messages and model responses and processes them into memory. Developers do not need to manage this separately.",[43,2246],{},[68,2248,2249],{},"add_message_on_answer=true or false"," when calling the interface. Currently enabled by default.",[1081,2252,2253,2256,2270],{},[1106,2254,2255],{"align":1086},"Associate More Entities",[1106,2257,2258,2261,2263,2265,2267],{"align":1086},[68,2259,2260],{},"agent_id",[43,2262],{},[115,2264,1137],{"style":1136},[43,2266],{},[68,2268,2269],{},"app_id",[1106,2271,2272],{"align":1086},"Unique identifier for associating current user conversation messages with entities like Agents, apps, etc., facilitating subsequent memory retrieval by entity dimension.",[1081,2274,2275,2278,2283],{},[1106,2276,2277],{"align":1086},"Async Mode",[1106,2279,2280],{"align":1086},[68,2281,2282],{},"async_mode",[1106,2284,2285,2286,166],{"align":1086},"Controls the processing method after adding messages, supporting both asynchronous and synchronous modes, see ",[1064,2287,2277],{"href":2288},"\u002Fmemos_cloud\u002Ffeatures\u002Fbasic\u002Fasync_mode",[1081,2290,2291,2294,2299],{},[1106,2292,2293],{"align":1086},"Custom Tags",[1106,2295,2296],{"align":1086},[68,2297,2298],{},"tags",[1106,2300,2301,2302,166],{"align":1086},"Add custom tags to current user conversation messages for subsequent memory retrieval and filtering, see ",[1064,2303,2305],{"href":2304},"\u002Fmemos_cloud\u002Ffeatures\u002Fbasic\u002Fcustom_tags",[26,2306,2293],{},[1081,2308,2309,2312,2317],{},[1106,2310,2311],{"align":1086},"Meta Info",[1106,2313,2314],{"align":1086},[68,2315,2316],{},"info",[1106,2318,2319],{"align":1086},"Custom meta information fields used to supplement current user conversation messages and used as filtering conditions in subsequent memory retrieval.",[1081,2321,2322,2325,2330],{},[1106,2323,2324],{"align":1086},"Write to Public Memory",[1106,2326,2327],{"align":1086},[68,2328,2329],{},"allow_public",[1106,2331,2332],{"align":1086},"Controls whether memories generated from current user conversation messages are written to project-level public memory for sharing among all users under the project.",[1081,2334,2335,2338,2343],{},[1106,2336,2337],{"align":1086},"Write to Knowledge Base Memory",[1106,2339,2340],{"align":1086},[68,2341,2342],{},"allow_knowledgebase_ids",[1106,2344,2345],{"align":1086},"Controls whether memories generated from current user conversation messages are written to specified project-associated knowledge bases.",[43,2347],{},[11,2349,2351],{"id":2350},"_6-comparison-of-memory-operation-interfaces","6. Comparison of Memory Operation Interfaces",[1075,2353,2354,2367],{},[1078,2355,2356],{},[1081,2357,2358,2361,2364],{},[1084,2359,2360],{"align":1086},"Comparison Dimension",[1084,2362,2363],{"align":1086},"Chat Interface",[1084,2365,2366],{"align":1086},"Memory Management Interface",[1101,2368,2369,2380,2390,2401,2412,2429,2440],{},[1081,2370,2371,2374,2377],{},[1106,2372,2373],{"align":1086},"Multimodal Memory",[1106,2375,2376],{"align":1086},"Currently not supported for input",[1106,2378,2379],{"align":1086},"✅Supported for input and retrieval",[1081,2381,2382,2385,2388],{},[1106,2383,2384],{"align":1086},"Tool Memory",[1106,2386,2387],{"align":1086},"Currently not supported for input\u002Fretrieval",[1106,2389,2379],{"align":1086},[1081,2391,2392,2395,2398],{},[1106,2393,2394],{"align":1086},"Memory Management",[1106,2396,2397],{"align":1086},"✅Automatic user memory management",[1106,2399,2400],{"align":1086},"Manually add messages, retrieve memories",[1081,2402,2403,2406,2409],{},[1106,2404,2405],{"align":1086},"Context Engineering",[1106,2407,2408],{"align":1086},"✅Automatic assembly",[1106,2410,2411],{"align":1086},"Manual assembly",[1081,2413,2414,2417,2423],{},[1106,2415,2416],{"align":1086},"Model Response",[1106,2418,2419,2420,2422],{"align":1086},"✅Free use of specified model list",[43,2421],{},"Basic model parameters",[1106,2424,2425,2426,2428],{"align":1086},"Call external models yourself",[43,2427],{},"✅Rich model parameters",[1081,2430,2431,2434,2437],{},[1106,2432,2433],{"align":1086},"Complexity",[1106,2435,2436],{"align":1086},"✅Simple, out of the box",[1106,2438,2439],{"align":1086},"Medium, requires development",[1081,2441,2442,2445,2451],{},[1106,2443,2444],{"align":1086},"Typical Use Cases",[1106,2446,2447,2448,2450],{"align":1086},"General AI conversation applications",[43,2449],{},"Business PoC \u002F Rapid validation",[1106,2452,2453,2454,2456],{"align":1086},"Complex Agent applications",[43,2455],{},"Deep integration with business systems",[2458,2459,2460],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":52,"searchDepth":129,"depth":129,"links":2462},[2463,2464,2465,2469,2470,2475],{"id":13,"depth":129,"text":14},{"id":47,"depth":129,"text":48},{"id":99,"depth":129,"text":100,"children":2466},[2467,2468],{"id":104,"depth":137,"text":105},{"id":701,"depth":137,"text":702},{"id":1040,"depth":129,"text":1041},{"id":1052,"depth":129,"text":1053,"children":2471},[2472,2473,2474],{"id":1072,"depth":137,"text":1073},{"id":1172,"depth":137,"text":1173},{"id":2216,"depth":137,"text":2217},{"id":2350,"depth":129,"text":2351},"MemOS provides a chat interface with built-in comprehensive memory management capabilities, eliminating the need for you to manually assemble context.","md",{},"\u002Fen\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Fcontinuous_dialogue",{"title":5,"description":52},"en\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Fcontinuous_dialogue","DZdsNASvuzmcZTpDGWmcJRAs0OJLY0Fg7XnFiYY5TNI",[2484],{"title":2485,"path":2486,"stem":2487,"icon":2488,"framework":6,"module":6,"class":2489,"target":-1,"active":2490,"defaultOpen":2490,"children":-1,"description":2491},"Tool Calling","\u002Fmemos_cloud\u002Ffeatures\u002Fadvanced\u002Ftool_calling","memos_cloud\u002Ffeatures\u002Fadvanced\u002Ftool_calling","i-ri-tools-line",[],false,"Add tool calling information, integrating tool calling decisions, execution results, and usage trajectories into MemOS memory.",1775811158073]