[{"data":1,"prerenderedAt":2058},["ShallowReactive",2],{"docs-page-en-\u002Fmemos_cloud\u002Fmem_operations\u002Fchat":3,"surround-en-\u002Fmemos_cloud\u002Fmem_operations\u002Fchat":2042},{"id":4,"title":5,"avatar":6,"banner":6,"body":7,"category":6,"desc":2035,"description":205,"extension":2036,"links":6,"meta":2037,"navigation":6,"path":2038,"seo":2039,"stem":2040,"__hash__":2041},"docs\u002Fen\u002Fmemos_cloud\u002Fmem_operations\u002Fchat.md","Continuous Conversation Chat",null,{"type":8,"value":9,"toc":2020},"minimark",[10,15,19,42,45,49,67,134,136,140,147,174,176,180,1388,1390,1394,1402,1404,1408,1411,1413,1417,1420,1446,1676,1678,1682,1685,1717,1867,1874,1876,1880,1883,1891,1976,1979,2016],[11,12,14],"h2",{"id":13},"_1-when-to-use-the-chat-api","1. When to Use the Chat API",[16,17,18],"p",{},"The Chat API is suitable for quickly building AI conversation applications with long-term memory. You only pass the user's current message; MemOS automatically handles memory recall, prompt assembly, model response generation, and conversation writing.",[20,21,22,30,36],"ul",{},[23,24,25,29],"li",{},[26,27,28],"strong",{},"Integrated conversational AI",": one API completes conversation generation without a complex custom pipeline.",[23,31,32,35],{},[26,33,34],{},"Automatic memory handling",": automatically extracts, updates, and retrieves memories, reducing manual maintenance.",[23,37,38,41],{},[26,39,40],{},"Continuous context",": keeps understanding coherent across turns, days, and even sessions.",[43,44],"br",{},[11,46,48],{"id":47},"_2-compared-with-memory-operation-apis","2. Compared with Memory Operation APIs",[50,51,52,60],"card-group",{},[53,54,57],"card",{"icon":55,"title":56},"i-ri-chat-4-line","Use Chat",[16,58,59],{},"Best for general AI conversations, business PoCs, and quick validation",[53,61,64],{"icon":62,"title":63},"i-ri-database-2-line","Use Memory Operation APIs",[16,65,66],{},"Best for complex Agents and deeper business-system integration",[68,69,70,86],"table",{},[71,72,73],"thead",{},[74,75,76,80,83],"tr",{},[77,78,79],"th",{},"Dimension",[77,81,82],{},"Chat API",[77,84,85],{},"Memory operation APIs",[87,88,89,101,112,123],"tbody",{},[74,90,91,95,98],{},[92,93,94],"td",{},"Integration complexity",[92,96,97],{},"Low, ready to use",[92,99,100],{},"Medium, requires orchestration",[74,102,103,106,109],{},[92,104,105],{},"Memory management",[92,107,108],{},"Automatic",[92,110,111],{},"Manually add, search, and assemble",[74,113,114,117,120],{},[92,115,116],{},"Model response",[92,118,119],{},"Generated by MemOS built-in model",[92,121,122],{},"Call your own external model",[74,124,125,128,131],{},[92,126,127],{},"Control",[92,129,130],{},"Good for common configuration",[92,132,133],{},"Good for complex pipelines and fine-grained control",[43,135],{},[11,137,139],{"id":138},"_3-how-it-works","3. How It Works",[16,141,142],{},[143,144],"img",{"alt":145,"src":146},"Chat API flow","https:\u002F\u002Fcdn.memtensor.com.cn\u002Fimg\u002F1765973438090_tskx7x_compressed.png",[148,149,150,158,165,168,171],"ol",{},[23,151,152,153,157],{},"If historical user messages exist, call ",[154,155,156],"code",{},"add\u002Fmessage"," to write them into MemOS first.",[23,159,160,161,164],{},"When the end user sends a message, your AI application calls ",[154,162,163],{},"chat"," with the user message and related parameters.",[23,166,167],{},"MemOS recalls historical memories related to the current user message and assembles custom instructions, current conversation context, and user memories.",[23,169,170],{},"MemOS calls the model to generate an answer and returns the result to your AI application.",[23,172,173],{},"By default, MemOS asynchronously processes the user message and model response in the background and writes them as memories.",[43,175],{},[11,177,179],{"id":178},"_4-quick-start","4. Quick Start",[181,182,184,189,195,940,944,950,1380],"steps",{"level":183},"3",[185,186,188],"h3",{"id":187},"optional-add-historical-messages","Optional: add historical messages",[16,190,191,192,194],{},"If you already have conversation history, call ",[154,193,156],{}," first. For a new user or a new conversation, skip this step and call Chat directly.",[196,197,198,643],"code-group",{},[199,200,206],"pre",{"className":201,"code":202,"filename":203,"language":204,"meta":205,"style":205},"language-python shiki shiki-themes material-theme-lighter github-light-high-contrast github-dark-default","import requests\n\nAPI_KEY = \"YOUR_API_KEY\"\nBASE_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 booked a summer trip to Guangzhou. Which hotel chains are available?\"},\n    {\"role\": \"assistant\", \"content\": \"You can consider 7 Days Inn, Ji Hotel, Hilton, and others.\"},\n    {\"role\": \"user\", \"content\": \"I'll choose 7 Days Inn.\"},\n    {\"role\": \"assistant\", \"content\": \"Got it. Feel free to ask if you have other questions.\"}\n  ]\n}\n\nres = requests.post(\n  f\"{BASE_URL}\u002Fadd\u002Fmessage\",\n  headers={\"Authorization\": f\"Token {API_KEY}\"},\n  json=data\n)\n\nprint(res.json())\n","Python (HTTP)","python","",[154,207,208,221,228,250,265,270,283,308,329,344,388,427,465,504,510,515,520,541,565,601,612,618,623],{"__ignoreMap":205},[209,210,213,217],"span",{"class":211,"line":212},"line",1,[209,214,216],{"class":215},"sBMTB","import",[209,218,220],{"class":219},"s5ojA"," requests\n",[209,222,224],{"class":211,"line":223},2,[209,225,227],{"emptyLinePlaceholder":226},true,"\n",[209,229,231,235,239,243,247],{"class":211,"line":230},3,[209,232,234],{"class":233},"sZaqd","API_KEY",[209,236,238],{"class":237},"saN0X"," =",[209,240,242],{"class":241},"sjUum"," \"",[209,244,246],{"class":245},"sp1uZ","YOUR_API_KEY",[209,248,249],{"class":241},"\"\n",[209,251,253,256,258,260,263],{"class":211,"line":252},4,[209,254,255],{"class":233},"BASE_URL",[209,257,238],{"class":237},[209,259,242],{"class":241},[209,261,262],{"class":245},"https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1",[209,264,249],{"class":241},[209,266,268],{"class":211,"line":267},5,[209,269,227],{"emptyLinePlaceholder":226},[209,271,273,276,279],{"class":211,"line":272},6,[209,274,275],{"class":219},"data ",[209,277,278],{"class":237},"=",[209,280,282],{"class":281},"suWxN"," {\n",[209,284,286,289,292,295,298,300,303,305],{"class":211,"line":285},7,[209,287,288],{"class":241},"  \"",[209,290,291],{"class":245},"user_id",[209,293,294],{"class":241},"\"",[209,296,297],{"class":281},":",[209,299,242],{"class":241},[209,301,302],{"class":245},"memos_user_123",[209,304,294],{"class":241},[209,306,307],{"class":281},",\n",[209,309,311,313,316,318,320,322,325,327],{"class":211,"line":310},8,[209,312,288],{"class":241},[209,314,315],{"class":245},"conversation_id",[209,317,294],{"class":241},[209,319,297],{"class":281},[209,321,242],{"class":241},[209,323,324],{"class":245},"0610",[209,326,294],{"class":241},[209,328,307],{"class":281},[209,330,332,334,337,339,341],{"class":211,"line":331},9,[209,333,288],{"class":241},[209,335,336],{"class":245},"messages",[209,338,294],{"class":241},[209,340,297],{"class":281},[209,342,343],{"class":281}," [\n",[209,345,347,350,352,355,357,359,361,364,366,369,371,374,376,378,380,383,385],{"class":211,"line":346},10,[209,348,349],{"class":281},"    {",[209,351,294],{"class":241},[209,353,354],{"class":245},"role",[209,356,294],{"class":241},[209,358,297],{"class":281},[209,360,242],{"class":241},[209,362,363],{"class":245},"user",[209,365,294],{"class":241},[209,367,368],{"class":281},",",[209,370,242],{"class":241},[209,372,373],{"class":245},"content",[209,375,294],{"class":241},[209,377,297],{"class":281},[209,379,242],{"class":241},[209,381,382],{"class":245},"I booked a summer trip to Guangzhou. Which hotel chains are available?",[209,384,294],{"class":241},[209,386,387],{"class":281},"},\n",[209,389,391,393,395,397,399,401,403,406,408,410,412,414,416,418,420,423,425],{"class":211,"line":390},11,[209,392,349],{"class":281},[209,394,294],{"class":241},[209,396,354],{"class":245},[209,398,294],{"class":241},[209,400,297],{"class":281},[209,402,242],{"class":241},[209,404,405],{"class":245},"assistant",[209,407,294],{"class":241},[209,409,368],{"class":281},[209,411,242],{"class":241},[209,413,373],{"class":245},[209,415,294],{"class":241},[209,417,297],{"class":281},[209,419,242],{"class":241},[209,421,422],{"class":245},"You can consider 7 Days Inn, Ji Hotel, Hilton, and others.",[209,424,294],{"class":241},[209,426,387],{"class":281},[209,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,461,463],{"class":211,"line":429},12,[209,431,349],{"class":281},[209,433,294],{"class":241},[209,435,354],{"class":245},[209,437,294],{"class":241},[209,439,297],{"class":281},[209,441,242],{"class":241},[209,443,363],{"class":245},[209,445,294],{"class":241},[209,447,368],{"class":281},[209,449,242],{"class":241},[209,451,373],{"class":245},[209,453,294],{"class":241},[209,455,297],{"class":281},[209,457,242],{"class":241},[209,459,460],{"class":245},"I'll choose 7 Days Inn.",[209,462,294],{"class":241},[209,464,387],{"class":281},[209,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,499,501],{"class":211,"line":467},13,[209,469,349],{"class":281},[209,471,294],{"class":241},[209,473,354],{"class":245},[209,475,294],{"class":241},[209,477,297],{"class":281},[209,479,242],{"class":241},[209,481,405],{"class":245},[209,483,294],{"class":241},[209,485,368],{"class":281},[209,487,242],{"class":241},[209,489,373],{"class":245},[209,491,294],{"class":241},[209,493,297],{"class":281},[209,495,242],{"class":241},[209,497,498],{"class":245},"Got it. Feel free to ask if you have other questions.",[209,500,294],{"class":241},[209,502,503],{"class":281},"}\n",[209,505,507],{"class":211,"line":506},14,[209,508,509],{"class":281},"  ]\n",[209,511,513],{"class":211,"line":512},15,[209,514,503],{"class":281},[209,516,518],{"class":211,"line":517},16,[209,519,227],{"emptyLinePlaceholder":226},[209,521,523,526,528,531,534,538],{"class":211,"line":522},17,[209,524,525],{"class":219},"res ",[209,527,278],{"class":237},[209,529,530],{"class":219}," requests",[209,532,533],{"class":281},".",[209,535,537],{"class":536},"sa-2m","post",[209,539,540],{"class":281},"(\n",[209,542,544,548,550,554,557,560,563],{"class":211,"line":543},18,[209,545,547],{"class":546},"sZ6T4","  f",[209,549,294],{"class":245},[209,551,553],{"class":552},"scyET","{",[209,555,255],{"class":556},"svxCd",[209,558,559],{"class":552},"}",[209,561,562],{"class":245},"\u002Fadd\u002Fmessage\"",[209,564,307],{"class":281},[209,566,568,572,574,576,578,581,583,585,588,591,593,595,597,599],{"class":211,"line":567},19,[209,569,571],{"class":570},"sp4zP","  headers",[209,573,278],{"class":237},[209,575,553],{"class":281},[209,577,294],{"class":241},[209,579,580],{"class":245},"Authorization",[209,582,294],{"class":241},[209,584,297],{"class":281},[209,586,587],{"class":546}," f",[209,589,590],{"class":245},"\"Token ",[209,592,553],{"class":552},[209,594,234],{"class":556},[209,596,559],{"class":552},[209,598,294],{"class":245},[209,600,387],{"class":281},[209,602,604,607,609],{"class":211,"line":603},20,[209,605,606],{"class":570},"  json",[209,608,278],{"class":237},[209,610,611],{"class":536},"data\n",[209,613,615],{"class":211,"line":614},21,[209,616,617],{"class":281},")\n",[209,619,621],{"class":211,"line":620},22,[209,622,227],{"emptyLinePlaceholder":226},[209,624,626,629,632,635,637,640],{"class":211,"line":625},23,[209,627,628],{"class":556},"print",[209,630,631],{"class":281},"(",[209,633,634],{"class":536},"res",[209,636,533],{"class":281},[209,638,639],{"class":536},"json",[209,641,642],{"class":281},"())\n",[199,644,647],{"className":201,"code":645,"filename":646,"language":204,"meta":205,"style":205},"from memos.api.client import MemOSClient\n\nclient = MemOSClient(api_key=\"YOUR_API_KEY\")\n\nmessages = [\n  {\"role\": \"user\", \"content\": \"I booked a summer trip to Guangzhou. Which hotel chains are available?\"},\n  {\"role\": \"assistant\", \"content\": \"You can consider 7 Days Inn, Ji Hotel, Hilton, and others.\"},\n  {\"role\": \"user\", \"content\": \"I'll choose 7 Days Inn.\"},\n  {\"role\": \"assistant\", \"content\": \"Got it. Feel free to ask if you have other questions.\"}\n]\n\nres = client.add_message(\n  messages=messages,\n  user_id=\"memos_user_123\",\n  conversation_id=\"0610\"\n)\n\nprint(res)\n","Python (SDK)",[154,648,649,672,676,700,704,713,750,786,822,858,863,867,883,894,909,922,926,930],{"__ignoreMap":205},[209,650,651,654,657,659,662,664,667,669],{"class":211,"line":212},[209,652,653],{"class":215},"from",[209,655,656],{"class":219}," memos",[209,658,533],{"class":281},[209,660,661],{"class":219},"api",[209,663,533],{"class":281},[209,665,666],{"class":219},"client ",[209,668,216],{"class":215},[209,670,671],{"class":219}," MemOSClient\n",[209,673,674],{"class":211,"line":223},[209,675,227],{"emptyLinePlaceholder":226},[209,677,678,680,682,685,687,690,692,694,696,698],{"class":211,"line":230},[209,679,666],{"class":219},[209,681,278],{"class":237},[209,683,684],{"class":536}," MemOSClient",[209,686,631],{"class":281},[209,688,689],{"class":570},"api_key",[209,691,278],{"class":237},[209,693,294],{"class":241},[209,695,246],{"class":245},[209,697,294],{"class":241},[209,699,617],{"class":281},[209,701,702],{"class":211,"line":252},[209,703,227],{"emptyLinePlaceholder":226},[209,705,706,709,711],{"class":211,"line":267},[209,707,708],{"class":219},"messages ",[209,710,278],{"class":237},[209,712,343],{"class":281},[209,714,715,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748],{"class":211,"line":272},[209,716,717],{"class":281},"  {",[209,719,294],{"class":241},[209,721,354],{"class":245},[209,723,294],{"class":241},[209,725,297],{"class":281},[209,727,242],{"class":241},[209,729,363],{"class":245},[209,731,294],{"class":241},[209,733,368],{"class":281},[209,735,242],{"class":241},[209,737,373],{"class":245},[209,739,294],{"class":241},[209,741,297],{"class":281},[209,743,242],{"class":241},[209,745,382],{"class":245},[209,747,294],{"class":241},[209,749,387],{"class":281},[209,751,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784],{"class":211,"line":285},[209,753,717],{"class":281},[209,755,294],{"class":241},[209,757,354],{"class":245},[209,759,294],{"class":241},[209,761,297],{"class":281},[209,763,242],{"class":241},[209,765,405],{"class":245},[209,767,294],{"class":241},[209,769,368],{"class":281},[209,771,242],{"class":241},[209,773,373],{"class":245},[209,775,294],{"class":241},[209,777,297],{"class":281},[209,779,242],{"class":241},[209,781,422],{"class":245},[209,783,294],{"class":241},[209,785,387],{"class":281},[209,787,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820],{"class":211,"line":310},[209,789,717],{"class":281},[209,791,294],{"class":241},[209,793,354],{"class":245},[209,795,294],{"class":241},[209,797,297],{"class":281},[209,799,242],{"class":241},[209,801,363],{"class":245},[209,803,294],{"class":241},[209,805,368],{"class":281},[209,807,242],{"class":241},[209,809,373],{"class":245},[209,811,294],{"class":241},[209,813,297],{"class":281},[209,815,242],{"class":241},[209,817,460],{"class":245},[209,819,294],{"class":241},[209,821,387],{"class":281},[209,823,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856],{"class":211,"line":331},[209,825,717],{"class":281},[209,827,294],{"class":241},[209,829,354],{"class":245},[209,831,294],{"class":241},[209,833,297],{"class":281},[209,835,242],{"class":241},[209,837,405],{"class":245},[209,839,294],{"class":241},[209,841,368],{"class":281},[209,843,242],{"class":241},[209,845,373],{"class":245},[209,847,294],{"class":241},[209,849,297],{"class":281},[209,851,242],{"class":241},[209,853,498],{"class":245},[209,855,294],{"class":241},[209,857,503],{"class":281},[209,859,860],{"class":211,"line":346},[209,861,862],{"class":281},"]\n",[209,864,865],{"class":211,"line":390},[209,866,227],{"emptyLinePlaceholder":226},[209,868,869,871,873,876,878,881],{"class":211,"line":429},[209,870,525],{"class":219},[209,872,278],{"class":237},[209,874,875],{"class":219}," client",[209,877,533],{"class":281},[209,879,880],{"class":536},"add_message",[209,882,540],{"class":281},[209,884,885,888,890,892],{"class":211,"line":467},[209,886,887],{"class":570},"  messages",[209,889,278],{"class":237},[209,891,336],{"class":536},[209,893,307],{"class":281},[209,895,896,899,901,903,905,907],{"class":211,"line":506},[209,897,898],{"class":570},"  user_id",[209,900,278],{"class":237},[209,902,294],{"class":241},[209,904,302],{"class":245},[209,906,294],{"class":241},[209,908,307],{"class":281},[209,910,911,914,916,918,920],{"class":211,"line":512},[209,912,913],{"class":570},"  conversation_id",[209,915,278],{"class":237},[209,917,294],{"class":241},[209,919,324],{"class":245},[209,921,249],{"class":241},[209,923,924],{"class":211,"line":517},[209,925,617],{"class":281},[209,927,928],{"class":211,"line":522},[209,929,227],{"emptyLinePlaceholder":226},[209,931,932,934,936,938],{"class":211,"line":543},[209,933,628],{"class":556},[209,935,631],{"class":281},[209,937,634],{"class":536},[209,939,617],{"class":281},[185,941,943],{"id":942},"call-chat","Call Chat",[16,945,946,947,949],{},"When you call ",[154,948,163],{},", MemOS automatically retrieves relevant memories and generates an answer.",[196,951,952,1157,1283],{},[199,953,955],{"className":201,"code":954,"filename":203,"language":204,"meta":205,"style":205},"import requests\n\nAPI_KEY = \"YOUR_API_KEY\"\nBASE_URL = \"https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\"\n\ndata = {\n  \"user_id\": \"memos_user_123\",\n  \"conversation_id\": \"0928\",\n  \"query\": \"I want to travel during National Day. Recommend a city I have not visited and a hotel brand I have not stayed at.\"\n}\n\nres = requests.post(\n  f\"{BASE_URL}\u002Fchat\",\n  headers={\"Authorization\": f\"Token {API_KEY}\"},\n  json=data\n)\n\nprint(res.json())\n",[154,956,957,963,967,979,991,995,1003,1021,1040,1058,1062,1066,1080,1097,1127,1135,1139,1143],{"__ignoreMap":205},[209,958,959,961],{"class":211,"line":212},[209,960,216],{"class":215},[209,962,220],{"class":219},[209,964,965],{"class":211,"line":223},[209,966,227],{"emptyLinePlaceholder":226},[209,968,969,971,973,975,977],{"class":211,"line":230},[209,970,234],{"class":233},[209,972,238],{"class":237},[209,974,242],{"class":241},[209,976,246],{"class":245},[209,978,249],{"class":241},[209,980,981,983,985,987,989],{"class":211,"line":252},[209,982,255],{"class":233},[209,984,238],{"class":237},[209,986,242],{"class":241},[209,988,262],{"class":245},[209,990,249],{"class":241},[209,992,993],{"class":211,"line":267},[209,994,227],{"emptyLinePlaceholder":226},[209,996,997,999,1001],{"class":211,"line":272},[209,998,275],{"class":219},[209,1000,278],{"class":237},[209,1002,282],{"class":281},[209,1004,1005,1007,1009,1011,1013,1015,1017,1019],{"class":211,"line":285},[209,1006,288],{"class":241},[209,1008,291],{"class":245},[209,1010,294],{"class":241},[209,1012,297],{"class":281},[209,1014,242],{"class":241},[209,1016,302],{"class":245},[209,1018,294],{"class":241},[209,1020,307],{"class":281},[209,1022,1023,1025,1027,1029,1031,1033,1036,1038],{"class":211,"line":310},[209,1024,288],{"class":241},[209,1026,315],{"class":245},[209,1028,294],{"class":241},[209,1030,297],{"class":281},[209,1032,242],{"class":241},[209,1034,1035],{"class":245},"0928",[209,1037,294],{"class":241},[209,1039,307],{"class":281},[209,1041,1042,1044,1047,1049,1051,1053,1056],{"class":211,"line":331},[209,1043,288],{"class":241},[209,1045,1046],{"class":245},"query",[209,1048,294],{"class":241},[209,1050,297],{"class":281},[209,1052,242],{"class":241},[209,1054,1055],{"class":245},"I want to travel during National Day. Recommend a city I have not visited and a hotel brand I have not stayed at.",[209,1057,249],{"class":241},[209,1059,1060],{"class":211,"line":346},[209,1061,503],{"class":281},[209,1063,1064],{"class":211,"line":390},[209,1065,227],{"emptyLinePlaceholder":226},[209,1067,1068,1070,1072,1074,1076,1078],{"class":211,"line":429},[209,1069,525],{"class":219},[209,1071,278],{"class":237},[209,1073,530],{"class":219},[209,1075,533],{"class":281},[209,1077,537],{"class":536},[209,1079,540],{"class":281},[209,1081,1082,1084,1086,1088,1090,1092,1095],{"class":211,"line":467},[209,1083,547],{"class":546},[209,1085,294],{"class":245},[209,1087,553],{"class":552},[209,1089,255],{"class":556},[209,1091,559],{"class":552},[209,1093,1094],{"class":245},"\u002Fchat\"",[209,1096,307],{"class":281},[209,1098,1099,1101,1103,1105,1107,1109,1111,1113,1115,1117,1119,1121,1123,1125],{"class":211,"line":506},[209,1100,571],{"class":570},[209,1102,278],{"class":237},[209,1104,553],{"class":281},[209,1106,294],{"class":241},[209,1108,580],{"class":245},[209,1110,294],{"class":241},[209,1112,297],{"class":281},[209,1114,587],{"class":546},[209,1116,590],{"class":245},[209,1118,553],{"class":552},[209,1120,234],{"class":556},[209,1122,559],{"class":552},[209,1124,294],{"class":245},[209,1126,387],{"class":281},[209,1128,1129,1131,1133],{"class":211,"line":512},[209,1130,606],{"class":570},[209,1132,278],{"class":237},[209,1134,611],{"class":536},[209,1136,1137],{"class":211,"line":517},[209,1138,617],{"class":281},[209,1140,1141],{"class":211,"line":522},[209,1142,227],{"emptyLinePlaceholder":226},[209,1144,1145,1147,1149,1151,1153,1155],{"class":211,"line":543},[209,1146,628],{"class":556},[209,1148,631],{"class":281},[209,1150,634],{"class":536},[209,1152,533],{"class":281},[209,1154,639],{"class":536},[209,1156,642],{"class":281},[199,1158,1160],{"className":201,"code":1159,"filename":646,"language":204,"meta":205,"style":205},"from memos.api.client import MemOSClient\n\nclient = MemOSClient(api_key=\"YOUR_API_KEY\")\n\nres = client.chat(\n  user_id=\"memos_user_123\",\n  conversation_id=\"0928\",\n  query=\"I want to travel during National Day. Recommend a city I have not visited and a hotel brand I have not stayed at.\"\n)\n\nprint(res)\n",[154,1161,1162,1180,1184,1206,1210,1224,1238,1252,1265,1269,1273],{"__ignoreMap":205},[209,1163,1164,1166,1168,1170,1172,1174,1176,1178],{"class":211,"line":212},[209,1165,653],{"class":215},[209,1167,656],{"class":219},[209,1169,533],{"class":281},[209,1171,661],{"class":219},[209,1173,533],{"class":281},[209,1175,666],{"class":219},[209,1177,216],{"class":215},[209,1179,671],{"class":219},[209,1181,1182],{"class":211,"line":223},[209,1183,227],{"emptyLinePlaceholder":226},[209,1185,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204],{"class":211,"line":230},[209,1187,666],{"class":219},[209,1189,278],{"class":237},[209,1191,684],{"class":536},[209,1193,631],{"class":281},[209,1195,689],{"class":570},[209,1197,278],{"class":237},[209,1199,294],{"class":241},[209,1201,246],{"class":245},[209,1203,294],{"class":241},[209,1205,617],{"class":281},[209,1207,1208],{"class":211,"line":252},[209,1209,227],{"emptyLinePlaceholder":226},[209,1211,1212,1214,1216,1218,1220,1222],{"class":211,"line":267},[209,1213,525],{"class":219},[209,1215,278],{"class":237},[209,1217,875],{"class":219},[209,1219,533],{"class":281},[209,1221,163],{"class":536},[209,1223,540],{"class":281},[209,1225,1226,1228,1230,1232,1234,1236],{"class":211,"line":272},[209,1227,898],{"class":570},[209,1229,278],{"class":237},[209,1231,294],{"class":241},[209,1233,302],{"class":245},[209,1235,294],{"class":241},[209,1237,307],{"class":281},[209,1239,1240,1242,1244,1246,1248,1250],{"class":211,"line":285},[209,1241,913],{"class":570},[209,1243,278],{"class":237},[209,1245,294],{"class":241},[209,1247,1035],{"class":245},[209,1249,294],{"class":241},[209,1251,307],{"class":281},[209,1253,1254,1257,1259,1261,1263],{"class":211,"line":310},[209,1255,1256],{"class":570},"  query",[209,1258,278],{"class":237},[209,1260,294],{"class":241},[209,1262,1055],{"class":245},[209,1264,249],{"class":241},[209,1266,1267],{"class":211,"line":331},[209,1268,617],{"class":281},[209,1270,1271],{"class":211,"line":346},[209,1272,227],{"emptyLinePlaceholder":226},[209,1274,1275,1277,1279,1281],{"class":211,"line":390},[209,1276,628],{"class":556},[209,1278,631],{"class":281},[209,1280,634],{"class":536},[209,1282,617],{"class":281},[199,1284,1289],{"className":1285,"code":1286,"filename":1287,"language":1288,"meta":205,"style":205},"language-bash shiki shiki-themes material-theme-lighter github-light-high-contrast github-dark-default","curl --request POST \\\n  --url https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\u002Fchat \\\n  --header 'Authorization: Token YOUR_API_KEY' \\\n  --header 'Content-Type: application\u002Fjson' \\\n  --data '{\n    \"user_id\": \"memos_user_123\",\n    \"conversation_id\": \"0928\",\n    \"query\": \"I want to travel during National Day. Recommend a city I have not visited and a hotel brand I have not stayed at.\"\n  }'\n","Curl","bash",[154,1290,1291,1308,1318,1334,1347,1357,1362,1367,1372],{"__ignoreMap":205},[209,1292,1293,1297,1301,1304],{"class":211,"line":212},[209,1294,1296],{"class":1295},"saonL","curl",[209,1298,1300],{"class":1299},"sp2SP"," --request",[209,1302,1303],{"class":245}," POST",[209,1305,1307],{"class":1306},"seOsA"," \\\n",[209,1309,1310,1313,1316],{"class":211,"line":223},[209,1311,1312],{"class":1299},"  --url",[209,1314,1315],{"class":245}," https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\u002Fchat",[209,1317,1307],{"class":1306},[209,1319,1320,1323,1326,1329,1332],{"class":211,"line":230},[209,1321,1322],{"class":1299},"  --header",[209,1324,1325],{"class":241}," '",[209,1327,1328],{"class":245},"Authorization: Token YOUR_API_KEY",[209,1330,1331],{"class":241},"'",[209,1333,1307],{"class":1306},[209,1335,1336,1338,1340,1343,1345],{"class":211,"line":252},[209,1337,1322],{"class":1299},[209,1339,1325],{"class":241},[209,1341,1342],{"class":245},"Content-Type: application\u002Fjson",[209,1344,1331],{"class":241},[209,1346,1307],{"class":1306},[209,1348,1349,1352,1354],{"class":211,"line":267},[209,1350,1351],{"class":1299},"  --data",[209,1353,1325],{"class":241},[209,1355,1356],{"class":245},"{\n",[209,1358,1359],{"class":211,"line":272},[209,1360,1361],{"class":245},"    \"user_id\": \"memos_user_123\",\n",[209,1363,1364],{"class":211,"line":285},[209,1365,1366],{"class":245},"    \"conversation_id\": \"0928\",\n",[209,1368,1369],{"class":211,"line":310},[209,1370,1371],{"class":245},"    \"query\": \"I want to travel during National Day. Recommend a city I have not visited and a hotel brand I have not stayed at.\"\n",[209,1373,1374,1377],{"class":211,"line":331},[209,1375,1376],{"class":245},"  }",[209,1378,1379],{"class":241},"'\n",[16,1381,1382,1383,533],{},"For the full field list, request format, and response format, see the ",[1384,1385,1387],"a",{"href":1386},"\u002Fapi_docs\u002Fchat\u002Fchat","Chat API documentation",[43,1389],{},[11,1391,1393],{"id":1392},"_5-limits","5. Limits",[20,1395,1396,1399],{},[23,1397,1398],{},"Input limit: 8,000 tokens.",[23,1400,1401],{},"Output limit: up to 25 fact memories and up to 25 preference memories can be recalled.",[43,1403],{},[11,1405,1407],{"id":1406},"_6-more-usage-options","6. More Usage Options",[16,1409,1410],{},"The Chat API works out of the box. The following parameters are optional and only needed when you want to control memory recall, model responses, or memory writing.",[43,1412],{},[185,1414,1416],{"id":1415},"control-memory-recall-scope","Control memory recall scope",[16,1418,1419],{},"Use these fields to control which memories are considered and how many are recalled:",[20,1421,1422,1428,1434,1440],{},[23,1423,1424,1427],{},[154,1425,1426],{},"filter",": filter memories by tags, time, business fields, and other conditions.",[23,1429,1430,1433],{},[154,1431,1432],{},"knowledgebase_ids",": specify which knowledge bases Chat can search.",[23,1435,1436,1439],{},[154,1437,1438],{},"relativity",": control the relevance threshold for recalled memories.",[23,1441,1442,1445],{},[154,1443,1444],{},"memory_limit_number",": limit the number of fact memories passed to the model.",[199,1447,1449],{"className":201,"code":1448,"language":204,"meta":205,"style":205},"data = {\n  \"user_id\": \"memos_user_123\",\n  \"conversation_id\": \"0928\",\n  \"query\": \"Use the knowledge base to summarize travel reimbursement rules.\",\n  \"knowledgebase_ids\": [\"kb_xxx\"],\n  \"filter\": {\n    \"and\": [\n      {\"tags\": {\"contains\": \"travel\"}},\n      {\"create_time\": {\"gte\": \"2025-01-01\"}}\n    ]\n  },\n  \"relativity\": 0.8,\n  \"memory_limit_number\": 9\n}\n",[154,1450,1451,1459,1477,1495,1514,1537,1549,1563,1599,1633,1638,1643,1659,1672],{"__ignoreMap":205},[209,1452,1453,1455,1457],{"class":211,"line":212},[209,1454,275],{"class":219},[209,1456,278],{"class":237},[209,1458,282],{"class":281},[209,1460,1461,1463,1465,1467,1469,1471,1473,1475],{"class":211,"line":223},[209,1462,288],{"class":241},[209,1464,291],{"class":245},[209,1466,294],{"class":241},[209,1468,297],{"class":281},[209,1470,242],{"class":241},[209,1472,302],{"class":245},[209,1474,294],{"class":241},[209,1476,307],{"class":281},[209,1478,1479,1481,1483,1485,1487,1489,1491,1493],{"class":211,"line":230},[209,1480,288],{"class":241},[209,1482,315],{"class":245},[209,1484,294],{"class":241},[209,1486,297],{"class":281},[209,1488,242],{"class":241},[209,1490,1035],{"class":245},[209,1492,294],{"class":241},[209,1494,307],{"class":281},[209,1496,1497,1499,1501,1503,1505,1507,1510,1512],{"class":211,"line":252},[209,1498,288],{"class":241},[209,1500,1046],{"class":245},[209,1502,294],{"class":241},[209,1504,297],{"class":281},[209,1506,242],{"class":241},[209,1508,1509],{"class":245},"Use the knowledge base to summarize travel reimbursement rules.",[209,1511,294],{"class":241},[209,1513,307],{"class":281},[209,1515,1516,1518,1520,1522,1524,1527,1529,1532,1534],{"class":211,"line":267},[209,1517,288],{"class":241},[209,1519,1432],{"class":245},[209,1521,294],{"class":241},[209,1523,297],{"class":281},[209,1525,1526],{"class":281}," [",[209,1528,294],{"class":241},[209,1530,1531],{"class":245},"kb_xxx",[209,1533,294],{"class":241},[209,1535,1536],{"class":281},"],\n",[209,1538,1539,1541,1543,1545,1547],{"class":211,"line":272},[209,1540,288],{"class":241},[209,1542,1426],{"class":245},[209,1544,294],{"class":241},[209,1546,297],{"class":281},[209,1548,282],{"class":281},[209,1550,1551,1554,1557,1559,1561],{"class":211,"line":285},[209,1552,1553],{"class":241},"    \"",[209,1555,1556],{"class":245},"and",[209,1558,294],{"class":241},[209,1560,297],{"class":281},[209,1562,343],{"class":281},[209,1564,1565,1568,1570,1573,1575,1577,1580,1582,1585,1587,1589,1591,1594,1596],{"class":211,"line":310},[209,1566,1567],{"class":281},"      {",[209,1569,294],{"class":241},[209,1571,1572],{"class":245},"tags",[209,1574,294],{"class":241},[209,1576,297],{"class":281},[209,1578,1579],{"class":281}," {",[209,1581,294],{"class":241},[209,1583,1584],{"class":245},"contains",[209,1586,294],{"class":241},[209,1588,297],{"class":281},[209,1590,242],{"class":241},[209,1592,1593],{"class":245},"travel",[209,1595,294],{"class":241},[209,1597,1598],{"class":281},"}},\n",[209,1600,1601,1603,1605,1608,1610,1612,1614,1616,1619,1621,1623,1625,1628,1630],{"class":211,"line":331},[209,1602,1567],{"class":281},[209,1604,294],{"class":241},[209,1606,1607],{"class":245},"create_time",[209,1609,294],{"class":241},[209,1611,297],{"class":281},[209,1613,1579],{"class":281},[209,1615,294],{"class":241},[209,1617,1618],{"class":245},"gte",[209,1620,294],{"class":241},[209,1622,297],{"class":281},[209,1624,242],{"class":241},[209,1626,1627],{"class":245},"2025-01-01",[209,1629,294],{"class":241},[209,1631,1632],{"class":281},"}}\n",[209,1634,1635],{"class":211,"line":346},[209,1636,1637],{"class":281},"    ]\n",[209,1639,1640],{"class":211,"line":390},[209,1641,1642],{"class":281},"  },\n",[209,1644,1645,1647,1649,1651,1653,1657],{"class":211,"line":429},[209,1646,288],{"class":241},[209,1648,1438],{"class":245},[209,1650,294],{"class":241},[209,1652,297],{"class":281},[209,1654,1656],{"class":1655},"sJNII"," 0.8",[209,1658,307],{"class":281},[209,1660,1661,1663,1665,1667,1669],{"class":211,"line":467},[209,1662,288],{"class":241},[209,1664,1444],{"class":245},[209,1666,294],{"class":241},[209,1668,297],{"class":281},[209,1670,1671],{"class":1655}," 9\n",[209,1673,1674],{"class":211,"line":506},[209,1675,503],{"class":281},[43,1677],{},[185,1679,1681],{"id":1680},"control-model-response-behavior","Control model response behavior",[16,1683,1684],{},"Use these fields to specify the model, enable streaming, or adjust generation parameters:",[20,1686,1687,1693,1699,1705,1711],{},[23,1688,1689,1692],{},[154,1690,1691],{},"model_name",": specify the conversation model.",[23,1694,1695,1698],{},[154,1696,1697],{},"stream",": control whether to stream the response.",[23,1700,1701,1704],{},[154,1702,1703],{},"temperature",": control randomness.",[23,1706,1707,1710],{},[154,1708,1709],{},"top_p",": control candidate token selection.",[23,1712,1713,1716],{},[154,1714,1715],{},"max_tokens",": limit the maximum generated length.",[199,1718,1720],{"className":201,"code":1719,"language":204,"meta":205,"style":205},"data = {\n  \"user_id\": \"memos_user_123\",\n  \"conversation_id\": \"0928\",\n  \"query\": \"Summarize my travel preferences in a concise tone.\",\n  \"model_name\": \"qwen2.5-72b-instruct\",\n  \"stream\": False,\n  \"temperature\": 0.7,\n  \"top_p\": 0.95,\n  \"max_tokens\": 1024\n}\n",[154,1721,1722,1730,1748,1766,1785,1804,1820,1835,1850,1863],{"__ignoreMap":205},[209,1723,1724,1726,1728],{"class":211,"line":212},[209,1725,275],{"class":219},[209,1727,278],{"class":237},[209,1729,282],{"class":281},[209,1731,1732,1734,1736,1738,1740,1742,1744,1746],{"class":211,"line":223},[209,1733,288],{"class":241},[209,1735,291],{"class":245},[209,1737,294],{"class":241},[209,1739,297],{"class":281},[209,1741,242],{"class":241},[209,1743,302],{"class":245},[209,1745,294],{"class":241},[209,1747,307],{"class":281},[209,1749,1750,1752,1754,1756,1758,1760,1762,1764],{"class":211,"line":230},[209,1751,288],{"class":241},[209,1753,315],{"class":245},[209,1755,294],{"class":241},[209,1757,297],{"class":281},[209,1759,242],{"class":241},[209,1761,1035],{"class":245},[209,1763,294],{"class":241},[209,1765,307],{"class":281},[209,1767,1768,1770,1772,1774,1776,1778,1781,1783],{"class":211,"line":252},[209,1769,288],{"class":241},[209,1771,1046],{"class":245},[209,1773,294],{"class":241},[209,1775,297],{"class":281},[209,1777,242],{"class":241},[209,1779,1780],{"class":245},"Summarize my travel preferences in a concise tone.",[209,1782,294],{"class":241},[209,1784,307],{"class":281},[209,1786,1787,1789,1791,1793,1795,1797,1800,1802],{"class":211,"line":267},[209,1788,288],{"class":241},[209,1790,1691],{"class":245},[209,1792,294],{"class":241},[209,1794,297],{"class":281},[209,1796,242],{"class":241},[209,1798,1799],{"class":245},"qwen2.5-72b-instruct",[209,1801,294],{"class":241},[209,1803,307],{"class":281},[209,1805,1806,1808,1810,1812,1814,1818],{"class":211,"line":272},[209,1807,288],{"class":241},[209,1809,1697],{"class":245},[209,1811,294],{"class":241},[209,1813,297],{"class":281},[209,1815,1817],{"class":1816},"smHB8"," False",[209,1819,307],{"class":281},[209,1821,1822,1824,1826,1828,1830,1833],{"class":211,"line":285},[209,1823,288],{"class":241},[209,1825,1703],{"class":245},[209,1827,294],{"class":241},[209,1829,297],{"class":281},[209,1831,1832],{"class":1655}," 0.7",[209,1834,307],{"class":281},[209,1836,1837,1839,1841,1843,1845,1848],{"class":211,"line":310},[209,1838,288],{"class":241},[209,1840,1709],{"class":245},[209,1842,294],{"class":241},[209,1844,297],{"class":281},[209,1846,1847],{"class":1655}," 0.95",[209,1849,307],{"class":281},[209,1851,1852,1854,1856,1858,1860],{"class":211,"line":331},[209,1853,288],{"class":241},[209,1855,1715],{"class":245},[209,1857,294],{"class":241},[209,1859,297],{"class":281},[209,1861,1862],{"class":1655}," 1024\n",[209,1864,1865],{"class":211,"line":346},[209,1866,503],{"class":281},[16,1868,1869,1870,1873],{},"To fully customize model behavior, pass ",[154,1871,1872],{},"system_prompt"," to override the default system prompt.",[43,1875],{},[185,1877,1879],{"id":1878},"control-whether-new-memories-are-written-automatically","Control whether new memories are written automatically",[16,1881,1882],{},"By default, Chat writes the current user message and model response into memory. If you only want to generate an answer and do not want this turn to enter memory processing, pass:",[20,1884,1885],{},[23,1886,1887,1890],{},[154,1888,1889],{},"add_message_on_answer",": whether to write this user message and model response into memory.",[199,1892,1894],{"className":201,"code":1893,"language":204,"meta":205,"style":205},"data = {\n  \"user_id\": \"memos_user_123\",\n  \"conversation_id\": \"0928\",\n  \"query\": \"Answer this once, but do not write this turn into memory.\",\n  \"add_message_on_answer\": False\n}\n",[154,1895,1896,1904,1922,1940,1959,1972],{"__ignoreMap":205},[209,1897,1898,1900,1902],{"class":211,"line":212},[209,1899,275],{"class":219},[209,1901,278],{"class":237},[209,1903,282],{"class":281},[209,1905,1906,1908,1910,1912,1914,1916,1918,1920],{"class":211,"line":223},[209,1907,288],{"class":241},[209,1909,291],{"class":245},[209,1911,294],{"class":241},[209,1913,297],{"class":281},[209,1915,242],{"class":241},[209,1917,302],{"class":245},[209,1919,294],{"class":241},[209,1921,307],{"class":281},[209,1923,1924,1926,1928,1930,1932,1934,1936,1938],{"class":211,"line":230},[209,1925,288],{"class":241},[209,1927,315],{"class":245},[209,1929,294],{"class":241},[209,1931,297],{"class":281},[209,1933,242],{"class":241},[209,1935,1035],{"class":245},[209,1937,294],{"class":241},[209,1939,307],{"class":281},[209,1941,1942,1944,1946,1948,1950,1952,1955,1957],{"class":211,"line":252},[209,1943,288],{"class":241},[209,1945,1046],{"class":245},[209,1947,294],{"class":241},[209,1949,297],{"class":281},[209,1951,242],{"class":241},[209,1953,1954],{"class":245},"Answer this once, but do not write this turn into memory.",[209,1956,294],{"class":241},[209,1958,307],{"class":281},[209,1960,1961,1963,1965,1967,1969],{"class":211,"line":267},[209,1962,288],{"class":241},[209,1964,1889],{"class":245},[209,1966,294],{"class":241},[209,1968,297],{"class":281},[209,1970,1971],{"class":1816}," False\n",[209,1973,1974],{"class":211,"line":272},[209,1975,503],{"class":281},[16,1977,1978],{},"For ordinary conversations, you can ignore these fields. When you want new memories generated by Chat to carry business ownership or control where they are written, use:",[20,1980,1981,1987,1993,1998,2004,2010],{},[23,1982,1983,1986],{},[154,1984,1985],{},"agent_id",": mark which Agent the conversation belongs to.",[23,1988,1989,1992],{},[154,1990,1991],{},"app_id",": mark which application the conversation comes from.",[23,1994,1995,1997],{},[154,1996,1572],{},": add tags for future retrieval and filtering.",[23,1999,2000,2003],{},[154,2001,2002],{},"info",": write custom business metadata such as scene, order ID, or status.",[23,2005,2006,2009],{},[154,2007,2008],{},"allow_public",": whether to allow writing to project-level public memory.",[23,2011,2012,2015],{},[154,2013,2014],{},"allow_knowledgebase_ids",": which knowledge bases can be written.",[2017,2018,2019],"style",{},"html pre.shiki code .sBMTB, html code.shiki .sBMTB{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#A0111F;--shiki-default-font-style:inherit;--shiki-dark:#FF7B72;--shiki-dark-font-style:inherit}html pre.shiki code .s5ojA, html code.shiki .s5ojA{--shiki-light:#90A4AE;--shiki-default:#0E1116;--shiki-dark:#E6EDF3}html pre.shiki code .sZaqd, html code.shiki .sZaqd{--shiki-light:#90A4AE;--shiki-default:#023B95;--shiki-dark:#79C0FF}html pre.shiki code .saN0X, html code.shiki .saN0X{--shiki-light:#39ADB5;--shiki-default:#A0111F;--shiki-dark:#FF7B72}html pre.shiki code .sjUum, html code.shiki .sjUum{--shiki-light:#39ADB5;--shiki-default:#032563;--shiki-dark:#A5D6FF}html pre.shiki code .sp1uZ, html code.shiki .sp1uZ{--shiki-light:#91B859;--shiki-default:#032563;--shiki-dark:#A5D6FF}html pre.shiki code .suWxN, html code.shiki .suWxN{--shiki-light:#39ADB5;--shiki-default:#0E1116;--shiki-dark:#E6EDF3}html pre.shiki code .sa-2m, html code.shiki .sa-2m{--shiki-light:#6182B8;--shiki-default:#0E1116;--shiki-dark:#E6EDF3}html pre.shiki code .sZ6T4, html code.shiki .sZ6T4{--shiki-light:#9C3EDA;--shiki-default:#A0111F;--shiki-dark:#FF7B72}html pre.shiki code .scyET, html code.shiki .scyET{--shiki-light:#F76D47;--shiki-default:#A0111F;--shiki-dark:#FF7B72}html pre.shiki code .svxCd, html code.shiki .svxCd{--shiki-light:#6182B8;--shiki-default:#023B95;--shiki-dark:#79C0FF}html pre.shiki code .sp4zP, html code.shiki .sp4zP{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#702C00;--shiki-default-font-style:inherit;--shiki-dark:#FFA657;--shiki-dark-font-style:inherit}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);}html pre.shiki code .saonL, html code.shiki .saonL{--shiki-light:#E2931D;--shiki-default:#702C00;--shiki-dark:#FFA657}html pre.shiki code .sp2SP, html code.shiki .sp2SP{--shiki-light:#91B859;--shiki-default:#023B95;--shiki-dark:#79C0FF}html pre.shiki code .seOsA, html code.shiki .seOsA{--shiki-light:#90A4AE;--shiki-default:#A0111F;--shiki-dark:#FF7B72}html pre.shiki code .sJNII, html code.shiki .sJNII{--shiki-light:#F76D47;--shiki-default:#023B95;--shiki-dark:#79C0FF}html pre.shiki code .smHB8, html code.shiki .smHB8{--shiki-light:#39ADB5;--shiki-default:#023B95;--shiki-dark:#79C0FF}",{"title":205,"searchDepth":223,"depth":223,"links":2021},[2022,2023,2024,2025,2029,2030],{"id":13,"depth":223,"text":14},{"id":47,"depth":223,"text":48},{"id":138,"depth":223,"text":139},{"id":178,"depth":223,"text":179,"children":2026},[2027,2028],{"id":187,"depth":230,"text":188},{"id":942,"depth":230,"text":943},{"id":1392,"depth":223,"text":1393},{"id":1406,"depth":223,"text":1407,"children":2031},[2032,2033,2034],{"id":1415,"depth":230,"text":1416},{"id":1680,"depth":230,"text":1681},{"id":1878,"depth":230,"text":1879},"MemOS provides a conversation API with built-in memory management, so you do not need to manually assemble context.","md",{},"\u002Fen\u002Fmemos_cloud\u002Fmem_operations\u002Fchat",{"title":5,"description":205},"en\u002Fmemos_cloud\u002Fmem_operations\u002Fchat","pzmGjY80tBsFYwmqKqyaDOjjZe-nA9p_aAoskabSy7Q",[2043,2051],{"title":2044,"path":2045,"stem":2046,"icon":2047,"framework":6,"module":6,"class":2048,"target":-1,"active":2049,"defaultOpen":2049,"children":-1,"description":2050},"Add Feedback","\u002Fmemos_cloud\u002Fmem_operations\u002Fadd_feedback","memos_cloud\u002Fmem_operations\u002Fadd_feedback","i-ri-feedback-line",[],false,"Add natural-language user feedback, and MemOS automatically updates memories.",{"title":2052,"path":2053,"stem":2054,"icon":2055,"framework":6,"module":6,"class":2056,"target":-1,"active":2049,"defaultOpen":2049,"children":-1,"description":2057},"Memory Filters","\u002Fmemos_cloud\u002Ffeatures\u002Ffilters","memos_cloud\u002Ffeatures\u002Ffilters","i-ri-filter-3-line",[],"Use memory filters during retrieval to filter by memory source, tags, metadata, time range, and other conditions.",1779709046562]