[{"data":1,"prerenderedAt":2900},["ShallowReactive",2],{"\u002Fapi_docs\u002Fcore\u002Fextract_memory":3,"openapi-data-dashboardApi-dashboard\u002Fapi-en":21,"surround-\u002Fapi_docs\u002Fcore\u002Fextract_memory":2194,"snippet-en-extract_memory":2205},{"id":4,"title":5,"avatar":6,"banner":6,"body":7,"category":6,"desc":6,"description":11,"extension":14,"links":6,"meta":15,"navigation":6,"path":17,"seo":18,"stem":19,"__hash__":20},"docs\u002Fen\u002Fapi_docs\u002Fcore\u002Fextract_memory.md","Extract Memory",null,{"type":8,"value":9,"toc":10},"minimark",[],{"title":11,"searchDepth":12,"depth":12,"links":13},"",2,[],"md",{"openapi":16},"POST \u002Fextract\u002Fmemory","\u002Fen\u002Fapi_docs\u002Fcore\u002Fextract_memory",{"title":5,"description":11},"en\u002Fapi_docs\u002Fcore\u002Fextract_memory","jvQPo1d9Th0djV0fTy-tF4M1DOFXJ0-w-kmSPARLF3M",[22,1247],{"id":23,"extension":24,"meta":25,"stem":1245,"__hash__":1246},"dashboardApi\u002Fcn\u002Fapi_docs\u002Fapi.json","json",{"openapi":26,"info":27,"servers":31,"security":35,"paths":38,"components":323},"3.1.0",{"title":28,"description":29,"version":30},"MemOS Dashboard APIs","Dashboard API for managing messages and searching memories in MemOS.","1.0.0",[32],{"url":33,"description":34},"https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1","Production server",[36],{"TokenAuth":37},[],{"\u002Fadd\u002Fmessage":39,"\u002Fget\u002Fmessage":75,"\u002Fsearch\u002Fmemory":94,"\u002Fchat":112,"\u002Fget\u002Fmemory":151,"\u002Fdelete\u002Fmemory":167,"\u002Fadd\u002Ffeedback":183,"\u002Fextract\u002Fmemory":199,"\u002Fget\u002Fstatus":227,"\u002Fcreate\u002Fknowledgebase":243,"\u002Fdelete\u002Fknowledgebase":259,"\u002Fadd\u002Fknowledgebase-file":275,"\u002Fget\u002Fknowledgebase-file":291,"\u002Fdelete\u002Fknowledgebase-file":307},{"post":40},{"summary":41,"description":42,"operationId":43,"requestBody":44,"responses":68},"Add Message","该接口用于添加会话消息，支持多类型内容、批量添加。MemOS 会自动解析消息并处理记忆，用于后续对话时召回参考。","add_message",{"required":45,"content":46},true,{"application\u002Fjson":47},{"schema":48,"example":50},{"$ref":49},"#\u002Fcomponents\u002Fschemas\u002FAddMessageRequest",{"user_id":51,"conversation_id":52,"messages":53},"memos_user_123","0610",[54,57,60,62,64,66],{"role":55,"content":56},"user","我想暑假出去玩，你能帮我推荐下吗？",{"role":58,"content":59},"assistant","好的！是自己出行还是和家人朋友一起呢？",{"role":55,"content":61},"肯定要带孩子啊，我们家出门都是全家一起。",{"role":58,"content":63},"明白了，所以你们是父母带孩子一块儿旅行，对吗？",{"role":55,"content":65},"对，带上孩子和老人，一般都是全家行动。",{"role":58,"content":67},"收到，那我会帮你推荐适合家庭出游的目的地。",{"200":69},{"description":70,"content":71},"Successful Response",{"application\u002Fjson":72},{"schema":73},{"$ref":74},"#\u002Fcomponents\u002Fschemas\u002FAddMessageResponse",{"post":76},{"summary":77,"description":78,"operationId":79,"requestBody":80,"responses":88},"Get Message","该接口用于获取指定会话的用户与助手历史对话记录，可按数量限制返回结果。","get_message",{"required":45,"content":81},{"application\u002Fjson":82},{"schema":83,"example":85},{"$ref":84},"#\u002Fcomponents\u002Fschemas\u002FGetMessageRequest",{"user_id":51,"conversation_id":86,"message_limit_number":87},"0928",6,{"200":89},{"description":70,"content":90},{"application\u002Fjson":91},{"schema":92},{"$ref":93},"#\u002Fcomponents\u002Fschemas\u002FGetMessageResponse",{"post":95},{"summary":96,"description":97,"operationId":98,"requestBody":99,"responses":106},"Search Memory","该接口用于检索指定用户的记忆，返回与输入查询内容最相关的记忆片段，供Agent使用。召回的记忆片段包括“事实记忆”、“偏好记忆”、“工具记忆”。","search_memory",{"required":45,"content":100},{"application\u002Fjson":101},{"schema":102,"example":104},{"$ref":103},"#\u002Fcomponents\u002Fschemas\u002FSearchMemoryRequest",{"query":105,"user_id":51,"conversation_id":86},"我国庆想出去玩，帮我推荐个没去过的城市，以及没住过的酒店品牌",{"200":107},{"description":70,"content":108},{"application\u002Fjson":109},{"schema":110},{"$ref":111},"#\u002Fcomponents\u002Fschemas\u002FSearchMemoryResponse",{"post":113},{"summary":114,"description":11,"operationId":115,"requestBody":116,"responses":142},"Chat","chat",{"required":45,"content":117},{"application\u002Fjson":118},{"schema":119,"example":121},{"$ref":120},"#\u002Fcomponents\u002Fschemas\u002FChatRequest",{"user_id":51,"stream":122,"query":123,"model_name":124,"conversation_id":125,"knowledgebase_ids":126,"filter":128,"system_prompt":133,"add_message_on_answer":122,"allow_public":122,"allow_knowledgebase_ids":134,"agent_id":135,"app_id":136,"tags":137,"info":138,"max_tokens":139,"temperature":140,"top_p":141},false,"上海有哪些好玩的","deepseek-r1","23006762-a064-456e-a33b-d2452bdfa09f",[127],"2448808afa784cc5f7595da21ae5a3fd",{"and":129},[130],{"create_time":131},{"gt":132},"2025-09-19","推荐公园",[],"agent_id_2025-12-15-01","app_id_2025-12-15-01",[],{},8192,0.7,0.95,{"200":143},{"description":70,"content":144},{"application\u002Fjson":145,"text\u002Fevent-stream":148},{"schema":146},{"$ref":147},"#\u002Fcomponents\u002Fschemas\u002FChatResponse",{"schema":149},{"$ref":150},"#\u002Fcomponents\u002Fschemas\u002FChatStreamResponse",{"post":152},{"summary":153,"description":154,"operationId":155,"requestBody":156,"responses":161},"Get Memory","该接口用于获取某个用户的记忆，包含事实记忆、偏好记忆与工具记忆。","get_memory",{"required":45,"content":157},{"application\u002Fjson":158},{"schema":159},{"$ref":160},"#\u002Fcomponents\u002Fschemas\u002FGetMemoryRequest",{"200":162},{"description":70,"content":163},{"application\u002Fjson":164},{"schema":165},{"$ref":166},"#\u002Fcomponents\u002Fschemas\u002FGetMemoryResponse",{"post":168},{"summary":169,"description":170,"operationId":171,"requestBody":172,"responses":177},"Delete Memory","该接口用于删除指定用户的记忆，支持批量删除。","delete_memory",{"required":45,"content":173},{"application\u002Fjson":174},{"schema":175},{"$ref":176},"#\u002Fcomponents\u002Fschemas\u002FDeleteMemoryRequest",{"200":178},{"description":70,"content":179},{"application\u002Fjson":180},{"schema":181},{"$ref":182},"#\u002Fcomponents\u002Fschemas\u002FDeleteMemoryResponse",{"post":184},{"summary":185,"description":186,"operationId":187,"requestBody":188,"responses":193},"Add Feedback","该接口用于添加对当前会话消息的反馈，MemOS能够基于用户的反馈更正记忆。","add_feedback",{"required":45,"content":189},{"application\u002Fjson":190},{"schema":191},{"$ref":192},"#\u002Fcomponents\u002Fschemas\u002FAddFeedbackRequest",{"200":194},{"description":70,"content":195},{"application\u002Fjson":196},{"schema":197},{"$ref":198},"#\u002Fcomponents\u002Fschemas\u002FAddFeedbackResponse",{"post":200},{"summary":5,"description":201,"operationId":202,"requestBody":203,"responses":221},"基于 MemOS 自研抽取模型，从对话消息中直接抽取并返回事实与偏好记忆。","extract_memory",{"required":45,"content":204},{"application\u002Fjson":205},{"schema":206,"example":208},{"$ref":207},"#\u002Fcomponents\u002Fschemas\u002FExtractMemoryRequest",{"messages":209,"extraction_types":218},[210,212,214,216],{"role":55,"content":211},"我暑假定好去广州旅游，住宿的话有哪些连锁酒店可选？",{"role":58,"content":213},"您可以考虑【七天、全季、希尔顿】等等",{"role":55,"content":215},"我选七天",{"role":58,"content":217},"好的，有其他问题再问我。",[219,220],"memory","preference",{"200":222},{"description":70,"content":223},{"application\u002Fjson":224},{"schema":225},{"$ref":226},"#\u002Fcomponents\u002Fschemas\u002FExtractMemoryResponse",{"post":228},{"summary":229,"description":230,"operationId":231,"requestBody":232,"responses":237},"Get Task Status","获取异步处理任务的状态。","get_status",{"required":45,"content":233},{"application\u002Fjson":234},{"schema":235},{"$ref":236},"#\u002Fcomponents\u002Fschemas\u002FGetStatusRequest",{"200":238},{"description":70,"content":239},{"application\u002Fjson":240},{"schema":241},{"$ref":242},"#\u002Fcomponents\u002Fschemas\u002FGetStatusResponse",{"post":244},{"summary":245,"description":246,"operationId":247,"requestBody":248,"responses":253},"创建知识库","创建与项目关联的知识库","create_knowledgebase",{"required":45,"content":249},{"application\u002Fjson":250},{"schema":251},{"$ref":252},"#\u002Fcomponents\u002Fschemas\u002FCreateKnowledgebaseRequest",{"200":254},{"description":70,"content":255},{"application\u002Fjson":256},{"schema":257},{"$ref":258},"#\u002Fcomponents\u002Fschemas\u002FCreateKnowledgebaseResponse",{"post":260},{"summary":261,"description":262,"operationId":263,"requestBody":264,"responses":269},"移除知识库","从当前项目中移除知识库，彻底删除知识库需从控制台-知识库页面操作。","delete_knowledgebase",{"required":45,"content":265},{"application\u002Fjson":266},{"schema":267},{"$ref":268},"#\u002Fcomponents\u002Fschemas\u002FDeleteKnowledgebaseRequest",{"200":270},{"description":70,"content":271},{"application\u002Fjson":272},{"schema":273},{"$ref":274},"#\u002Fcomponents\u002Fschemas\u002FDeleteKnowledgebaseResponse",{"post":276},{"summary":277,"description":278,"operationId":279,"requestBody":280,"responses":285},"添加知识库文档","向指定知识库上传文档","add_knowledgebase-file",{"required":45,"content":281},{"application\u002Fjson":282},{"schema":283},{"$ref":284},"#\u002Fcomponents\u002Fschemas\u002FUploadFileRequest",{"200":286},{"description":70,"content":287},{"application\u002Fjson":288},{"schema":289},{"$ref":290},"#\u002Fcomponents\u002Fschemas\u002FUploadFileResponse",{"post":292},{"summary":293,"description":294,"operationId":295,"requestBody":296,"responses":301},"获取知识库文档","获取指定文档信息","get_knowledgebase-file",{"required":45,"content":297},{"application\u002Fjson":298},{"schema":299},{"$ref":300},"#\u002Fcomponents\u002Fschemas\u002FGetFileRequest",{"200":302},{"description":70,"content":303},{"application\u002Fjson":304},{"schema":305},{"$ref":306},"#\u002Fcomponents\u002Fschemas\u002FGetFileResponse",{"post":308},{"summary":309,"description":310,"operationId":311,"requestBody":312,"responses":317},"删除知识库文档","从指定知识库中删除文档","delete_knowledgebase-file",{"required":45,"content":313},{"application\u002Fjson":314},{"schema":315},{"$ref":316},"#\u002Fcomponents\u002Fschemas\u002FDeleteFileRequest",{"200":318},{"description":70,"content":319},{"application\u002Fjson":320},{"schema":321},{"$ref":322},"#\u002Fcomponents\u002Fschemas\u002FDeleteFileResponse",{"securitySchemes":324,"schemas":330},{"TokenAuth":325},{"type":326,"name":327,"in":328,"description":329},"apiKey","Authorization","header","Token API_key，可在 \u003Ca href=\"https:\u002F\u002Fmemos-dashboard.openmem.net\u002Fapikeys\u002F\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\" target=\"_blank\">API 控制台>接口密钥\u003C\u002Fa> 中查看",{"ChatRequest":331,"ChatResponseData":423,"ChatResponse":429,"ChatStreamResponse":443,"MessageInput":459,"AddMessageRequest":521,"OpenMemAddMessageResponse":559,"AddMessageResponse":575,"GetMessageRequest":586,"MessageDetail":597,"GetMessageResponseData":611,"GetMessageResponse":619,"SearchMemoryRequest":627,"MemoryDetail":658,"PreferenceDetail":696,"ToolUsedStatus":724,"ToolMemoryDetail":739,"SkillValue":772,"SkillDetail":799,"SearchMemoryResponseData":831,"SearchMemoryResponse":857,"GetMemoryRequest":865,"GetMemoryResponseData":885,"GetMemoryResponse":972,"DeleteMemoryRequest":981,"DeleteMemoryResponse":990,"AddFeedbackRequest":1002,"AddFeedbackResponse":1026,"GetStatusRequest":1041,"GetStatusResponse":1048,"CreateKnowledgebaseRequest":1058,"CreateKnowledgebaseResponse":1069,"DeleteKnowledgebaseRequest":1080,"DeleteKnowledgebaseResponse":1088,"UploadFileRequest":1098,"UploadFileResponse":1113,"GetFileRequest":1132,"GetFileResponse":1141,"DeleteFileRequest":1158,"DeleteFileResponse":1165,"ExtractMemoryItem":1174,"ExtractPreferenceItem":1192,"ExtractMemoryResponseData":1204,"ExtractMemoryMessage":1217,"ExtractMemoryRequest":1224,"ExtractMemoryResponse":1237},{"type":332,"required":333,"properties":337,"title":422},"object",[334,335,336],"user_id","conversation_id","query",{"user_id":338,"conversation_id":342,"query":345,"filter":348,"knowledgebase_ids":352,"memory_limit_number":357,"include_preference":362,"preference_limit_number":366,"relativity":369,"model_name":376,"system_prompt":383,"stream":386,"max_tokens":389,"temperature":392,"top_p":395,"add_message_on_answer":398,"app_id":401,"agent_id":404,"tags":407,"info":411,"allow_public":415,"allow_knowledgebase_ids":418},{"type":339,"title":340,"description":341},"string","User ID","对话内容所关联的用户唯一标识符。",{"type":339,"title":343,"description":344},"Conversation ID","对话内容所在会话的唯一标识符，传入可明确当前会话，本会话的记忆应当比其他历史会话的权重高；不传可跨会话检索相关记忆，得到相关性更高的模型回答。",{"type":339,"title":346,"description":347},"Query","用户输入的对话内容。",{"type":332,"title":349,"description":350,"example":351},"Filter","记忆过滤的条件，用于在检索记忆前精确限定记忆范围。可用字段包括：\"agent_id\", \"app_id\", \"create_time\", \"update_time\"与\"info\"中的字段。支持逻辑运算符（and，or）和比较运算符（gte、lte、gt、lt）。对于\"info\"字段，支持过滤传入的\"business_type\", \"biz_id\", \"scene\"和其他自定义字段。","{\"and\": [{\"create_time\":{\"gte\":\"...\"}}]}",{"type":353,"items":354,"title":355,"description":356},"array",{"type":339},"Knowledgebase IDs","该字段用于限制当次搜索可访问的知识库范围，默认为空（即不检索任何知识库）。传入具体知识库 ID，则可检索指定的知识库；传入all，则可检索该项目下所有关联知识库。",{"type":358,"title":359,"description":360,"default":361},"integer","Memory Limit Number","召回的事实记忆条数上限，在满足相关性阈值（relativity）的前提下最多返回该数量的记忆，不保证返回固定条数。默认值 9，最大值 25。",9,{"type":363,"title":364,"description":365,"default":45},"boolean","Include Preference","是否要召回偏好记忆，开启后系统会根据查询内容智能召回与用户偏好相关的记忆。默认 =true",{"type":358,"title":367,"description":368,"default":361},"Preference Limit Number","召回的偏好记忆条数上限，在满足相关性阈值（relativity）的前提下最多返回该数量的记忆，不保证返回固定条数。默认值 9，最大值 25。",{"type":370,"minimum":371,"maximum":372,"title":373,"description":374,"default":375},"number",0,1,"Relativity","召回记忆的相关性阈值（0~1）。用于过滤低相关记忆，并与限定返回的事实、偏好记忆最大条数，共同约束最终返回结果。不传时使用系统默认阈值，取值为0时表示不进行相关性过滤。",0.45,{"type":339,"enum":377,"title":380,"description":381,"default":382},[378,124,379],"qwen3-32b","qwen2.5-72b-instruct","Model Name","指定具体对话模型。","qwen2.5-72B-Instruct",{"type":339,"title":384,"description":385},"System Prompt","自定义系统指令。",{"type":363,"title":387,"description":388,"default":122},"Stream","是否启用流式返回。",{"type":358,"title":390,"description":391,"default":139},"Max Tokens","表示最大生成 token 数。",{"type":370,"title":393,"description":394,"default":140},"Temperature","控制生成随机性。取值范围：0 ≤ x ≤ 2",{"type":370,"title":396,"description":397,"default":141},"Top P","Nucleus 采样参数。取值范围：0 ≤ x ≤ 1",{"type":363,"title":399,"description":400,"default":45},"Add Message On Answer","是否自动将用户与助手的会话内容写入记忆。启用后，开发者无需再调用add\u002Fmessage接口添加消息为记忆。",{"type":339,"title":402,"description":403},"App ID","对话内容所关联的应用唯一标识符。",{"type":339,"title":405,"description":406},"Agent ID","对话内容所关联的Agent唯一标识符。",{"type":353,"items":408,"title":409,"description":410},{"type":339},"Tags","自定义标签列表，用于标记对话内容的主题或分类。",{"type":332,"additionalProperties":412,"title":413,"description":414},{"type":339},"Info","自定义元信息字段，能够存储任意与对话内容相关的结构化数据，例如位置、来源、版本等，主要用于在检索时精确过滤或追踪来源。",{"type":363,"title":416,"description":417,"default":122},"Allow Public","是否允许加入公共记忆。",{"type":353,"items":419,"title":420,"description":421},{"type":339},"Allow Knowledgebase IDs","添加的消息产生的记忆允许被写入的知识库列表。","ChatRequest",{"type":332,"title":424,"properties":425},"ChatResponseData",{"response":426},{"type":339,"title":427,"description":428},"Response","回答的具体内容。",{"type":332,"required":430,"properties":433,"title":442},[431,432],"code","message",{"code":434,"data":437,"message":439},{"type":358,"title":435,"description":436},"Code","接口状态码，更多内容可查阅\u003Ca href=\"\u002Fapi_docs\u002Fhelp\u002Ferror_codes\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\">错误码列表\u003C\u002Fa>了解详情。",{"$ref":438},"#\u002Fcomponents\u002Fschemas\u002FChatResponseData",{"type":339,"title":440,"description":441},"Message","提示信息","ChatResponse",{"type":332,"properties":444,"title":458},{"event":445,"data":447},{"type":339,"description":446,"default":432},"流式事件名称，当前默认为 message。",{"type":332,"description":448,"properties":449},"流式返回的数据内容。",{"type":450,"data":456},{"type":339,"description":451,"enum":452},"流式消息类型，用于标识当前数据的语义类别。\u003Cbr>reasoning：推理内容\u003Cbr>text：正常文本内容\u003Cbr>end：流式结束标识",[453,454,455],"reasoning","text","end",{"type":339,"description":457},"流式返回的文本内容。","ChatStreamResponse",{"type":332,"required":460,"properties":463,"title":520},[461,462],"role","content",{"chat_time":464,"role":467,"content":473,"tool_call_id":501,"tool_calls":503},{"type":339,"title":465,"description":466},"Chat Time","对话发生的时间，可传入结构化时间或中文时间描述。传入该参数能够让记忆携带时间信息。",{"type":339,"enum":468,"title":471,"description":472},[55,58,469,470],"system","tool","Role","消息创建者的角色。",{"oneOf":474,"description":500},[475,477],{"type":339,"description":476},"消息文本内容",{"type":353,"items":478,"description":499},{"type":332,"properties":479,"required":497},{"type":480,"text":485,"image_url":487,"file":492},{"type":339,"enum":481,"description":484},[454,482,483],"image_url","file","发送的消息类型",{"type":339,"description":486},"文本消息内容。type为text时必填。",{"type":332,"description":488,"properties":489},"图片消息内容对象。",{"url":490},{"type":339,"description":491},"图片消息URL。type为image_url时必填。",{"type":332,"description":493,"properties":494},"文件消息内容对象。",{"file_data":495},{"type":339,"description":496},"可访问的文件URL或者base64, 只支持七种类型txt \u002F pdf \u002F doc \u002F docx \u002F json \u002F md \u002F xml， 单文件不超过100MB、500页，总数不超过20个。type为file时必填。注意：该接口的总输入上限为20,000 Tokens。",[498],"type","多模态内容列表","消息内容文本。",{"type":339,"description":502},"role为tool时，工具调用消息的唯一标识。",{"type":353,"items":504,"description":519},{"type":332,"properties":505},{"id":506,"type":508,"function":512},{"type":339,"description":507},"工具调用的唯一标识，用于关联本次工具调用。tool_calls中必填。",{"type":339,"description":509,"enum":510},"工具调用类型，当前仅支持 function。tool_calls中必填。",[511],"function",{"type":332,"description":513,"properties":514},"被调用的工具定义，tool_calls中必填。",{"name":515,"arguments":517},{"type":339,"description":516},"工具（函数）名称，tool_calls中必填。",{"type":339,"description":518},"工具调用参数，需为 JSON 格式的字符串，tool_calls中必填。","role为assistant时，工具调用信息列表，用于在触发工具调用时传递。","MessageInput",{"type":332,"required":522,"properties":524,"title":558},[334,335,523],"messages",{"user_id":525,"conversation_id":527,"messages":529,"agent_id":534,"app_id":536,"tags":538,"info":542,"allow_public":550,"allow_knowledgebase_ids":552,"async_mode":556},{"type":339,"title":340,"description":526},"添加的消息所关联的用户唯一标识符。",{"type":339,"title":343,"description":528},"添加的消息所关联的会话唯一标识符，相同conversation_id下的多轮消息会被识别为同一上下文。",{"type":353,"title":530,"description":531,"items":532},"Messages","添加的消息对象数组，数组中所有消息的总token数上限为20k。",{"$ref":533},"#\u002Fcomponents\u002Fschemas\u002FMessageInput",{"type":339,"description":535},"添加的消息所关联的 Agent 唯一标识符，主要用于在检索记忆时查询某用户与该Agent的专属记忆。",{"type":339,"description":537},"添加的消息所关联的应用唯一标识符，主要用于在检索记忆时查询某用户在该App下的专属记忆。",{"type":353,"items":539,"description":540,"default":541},{"type":339},"自定义标签列表，用于标记添加消息的主题或分类。",[],{"type":332,"additionalProperties":543,"description":549},{"oneOf":544},[545,546,548],{"type":339},{"type":353,"items":547},{"type":339},{"type":370},"自定义元信息字段，能够存储任意与添加信息相关的结构化数据，例如位置、来源、版本等，主要用于在检索时精确过滤或追踪来源。",{"type":363,"description":551,"default":122},"添加的消息产生的记忆是否允许写入公共记忆库。开启后，生成的记忆可被项目下的其他用户检索。",{"type":353,"items":553,"description":554,"default":555},{"type":339},"添加的消息，产生的记忆允许被写入的知识库范围。",[],{"type":363,"description":557,"default":45},"是否启用异步添加记忆。开启后，记忆将在后台异步添加，避免阻塞调用链。","AddMessageRequest",{"type":332,"properties":560,"title":574},{"success":561,"task_id":564,"status":567},{"type":363,"title":562,"description":563,"example":45},"Success","是否添加成功。true表示成功，false表示失败。",{"type":339,"title":565,"description":566},"Task ID","记忆处理任务的唯一标识。",{"type":339,"title":568,"enum":569,"description":573},"Status",[570,571,572],"running","completed","failed","记忆处理任务当前的状态。","OpenMemAddMessageResponse",{"type":332,"required":576,"properties":577,"title":585},[431,432],{"code":578,"data":580,"message":582},{"type":358,"format":579,"title":435,"description":436,"example":371},"int32",{"$ref":581},"#\u002Fcomponents\u002Fschemas\u002FOpenMemAddMessageResponse",{"type":339,"title":440,"description":583,"example":584},"接口提示信息。","ok","AddMessageResponse",{"type":332,"required":587,"properties":588,"title":596},[334,335],{"user_id":589,"conversation_id":591,"message_limit_number":593},{"type":339,"title":340,"description":590},"与获取消息关联的用户的唯一标识符。",{"type":339,"title":343,"description":592},"与获取消息关联的会话的唯一标识符。",{"type":358,"format":579,"title":594,"description":595,"default":87},"Message Limit Number","限定返回的消息条数，用于控制消息列表的长度，不传时使用系统默认值6，最大值为50","GetMessageRequest",{"type":332,"properties":598,"title":610},{"role":599,"content":602,"create_time":604,"update_time":607},{"type":339,"enum":600,"title":471,"description":601,"example":55},[55,58],"消息发送者的角色。",{"type":339,"title":603,"description":500},"Content",{"type":339,"title":605,"description":606},"Create Time","消息创建时间。",{"type":339,"title":608,"description":609},"Update Time","消息最近一次更新时间。","MessageDetail",{"type":332,"properties":612,"title":618},{"message_detail_list":613},{"type":353,"title":614,"description":615,"items":616},"Message Detail List","消息添加结果对象。",{"$ref":617},"#\u002Fcomponents\u002Fschemas\u002FMessageDetail","GetMessageResponseData",{"type":332,"required":620,"properties":621,"title":626},[431,432],{"code":622,"data":623,"message":625},{"type":358,"format":579,"title":435,"description":436,"example":371},{"$ref":624},"#\u002Fcomponents\u002Fschemas\u002FGetMessageResponseData",{"type":339,"title":440,"description":583},"GetMessageResponse",{"type":332,"required":628,"properties":629,"title":657},[334,336],{"user_id":630,"conversation_id":632,"query":634,"filter":636,"knowledgebase_ids":638,"memory_limit_number":640,"include_preference":642,"preference_limit_number":644,"include_tool_memory":645,"tool_memory_limit_number":648,"include_skill":651,"skill_limit_number":654,"relativity":656},{"type":339,"title":340,"description":631},"与查询的记忆关联的用户的唯一标识符。",{"type":339,"title":343,"description":633},"查询内容所在会话的唯一标识符，传入可以明确当前会话，本会话的记忆应当比其他历史会话的权重高。",{"type":339,"title":346,"description":635},"要在记忆中查询的文本内容，单次查询文本的token上限为20k。",{"type":332,"title":349,"description":637,"example":351},"记忆过滤的条件，用于在检索记忆前精确限定记忆范围。可用字段包括：\"agent_id\", \"app_id\", \"create_time\", \"update_time\"以及\"info\"中的字段。支持逻辑运算符（and，or）和比较运算符（gte、lte、gt、lt）。对于\"info\"字段，支持过滤传入的\"business_type\", \"biz_id\", \"scene\"和其他自定义字段。",{"type":353,"items":639,"description":356},{"type":339},{"type":358,"format":579,"title":359,"description":641,"default":361},"召回的记忆条数上限，在满足相关性阈值（relativity）的前提下最多返回该数量的记忆，不保证返回固定条数。默认值 9，最大值 25。",{"type":363,"title":364,"description":643,"default":45},"是否启用偏好记忆召回。开启后，将根据查询的内容智能召回用户的偏好记忆。不传时该功能默认开启。",{"type":358,"format":579,"title":367,"description":368,"default":361},{"type":363,"title":646,"description":647,"default":122},"Include Tool Memory","是否启用工具记忆召回。开启后，系统会根据查询内容智能召回工具相关的记忆。不传时该功能默认关闭。",{"type":358,"format":579,"title":649,"description":650,"default":87},"Tool Memroy Limit Number","限定返回的工具记忆条数，用于控制召回的工具记忆个数,仅在 include_tool_memory=true 时生效。不传时使用系统默认值6，最大值为25。",{"type":363,"title":652,"description":653},"Include Skill","是否启用技能（Skill）召回。开启后，系统会根据查询内容智能召回工具相关的记忆。不传时该功能默认关闭。",{"type":370,"title":652,"description":655},"限定返回的技能（Skill）条数，用于控制召回的技能个数,仅在 include_skill=true 时生效。不传时使用系统默认值6，最大值为25。",{"type":370,"minimum":371,"maximum":372,"title":373,"description":374,"default":375},"SearchMemoryRequest",{"type":332,"properties":659,"title":695},{"id":660,"memory_key":663,"memory_value":666,"memory_type":669,"create_time":676,"conversation_id":678,"status":680,"confidence":684,"tags":687,"update_time":690,"relativity":692},{"type":339,"title":661,"description":662},"ID","事实记忆的唯一标识符，系统内部用于区分不同的记忆条目。",{"type":339,"title":664,"description":665},"Memory Key","事实记忆的标题或关键词，用于概括该事实记忆的主要内容。",{"type":339,"title":667,"description":668},"Memory Value","事实记忆的具体内容。",{"type":339,"enum":670,"title":674,"description":675,"example":672},[671,672,673],"WorkingMemory","LongTermMemory","UserMemory","Memory Type","事实记忆类型。\u003Cbr>WorkingMemory：工作记忆，临时存储的短期信息。\u003Cbr>LongTermMemory：长期记忆，持久保存的重要信息或事实。\u003Cbr>UserMemory：用户记忆，与特定用户相关的个性化信息。",{"type":339,"title":605,"description":677},"事实记忆内容创建的时间，通常为 ISO 8601 格式。",{"type":339,"title":343,"description":679},"与该事实记忆关联的会话的唯一标识符。",{"type":339,"enum":681,"title":568,"description":683,"example":682},[682],"activated","事实记忆的状态，当前所有检索到的事实记忆都是activated。\u003Cbr>activated：激活状态，当前可检索和使用的事实记忆。",{"type":370,"minimum":371,"maximum":372,"title":685,"description":686,"example":141},"Confidence","事实记忆的置信度分数，范围 0~1，数值越接近 1 表示该事实记忆越准确可靠。\u003Cbr>置信度分数会随着模型对该事实记忆的推理次数增加而逐渐衰减，用于反映事实记忆随着时间或使用频率可能产生的不确定性。",{"type":353,"title":409,"description":688,"items":689},"与事实记忆相关的标签列表，用于分类、检索或主题标记。数组中的每个元素都是string，例如 [\"人物\", \"事件\", \"工作\"]。",{"type":339},{"type":339,"title":608,"description":691},"事实记忆最后一次被修改或更新的时间，通常为 ISO 8601 格式。",{"type":370,"minimum":371,"maximum":372,"title":373,"description":693,"example":694},"查询内容与该事实记忆的相关性分数，范围 0~1，数值越接近 1 表示越相关。",0.87,"MemoryDetail",{"type":332,"properties":697,"title":723},{"id":698,"preference_type":700,"preference":706,"reasoning":709,"create_time":712,"conversation_id":714,"status":716,"update_time":719,"relativity":721},{"type":339,"title":661,"description":699},"偏好记忆的唯一标识符，系统内部用于区分不同的记忆条目。",{"type":339,"enum":701,"title":704,"description":705,"example":702},[702,703],"explicit_preference","implicit_preference","Preference Type","偏好记忆类型。\u003Cbr>explicit_preference：显式偏好记忆。\u003Cbr>implicit_preference：隐式偏好记忆。",{"type":339,"title":707,"description":708},"Preference","偏好记忆的具体内容。",{"type":339,"title":710,"description":711},"Reasoning","偏好记忆提取的原因。",{"type":339,"title":605,"description":713},"偏好记忆内容创建的时间，通常为 ISO 8601 格式。",{"type":339,"title":343,"description":715},"与该偏好记忆关联的会话的唯一标识符。",{"type":339,"enum":717,"title":568,"description":718,"example":682},[682],"偏好记忆的状态，当前所有检索到的偏好记忆都是activated。\u003Cbr>activated：激活状态，当前可检索和使用的事实记忆。",{"type":339,"title":608,"description":720},"偏好记忆最后一次被修改或更新的时间，通常为 ISO 8601 格式。",{"type":370,"minimum":371,"maximum":372,"title":373,"description":722,"example":694},"查询内容与该偏好记忆的相关性分数，范围 0~1，数值越接近 1 表示越相关。","PreferenceDetail",{"type":332,"properties":725,"title":738},{"used_tool":726,"error_type":729,"success_rate":732,"tool_experience":735},{"type":339,"title":727,"description":728},"Used Tool","使用的工具名称。",{"type":339,"title":730,"description":731},"Error Type","调用失败时的错误描述。",{"type":370,"title":733,"description":734},"Success Rate","本次工具轨迹的成功率。",{"type":339,"title":736,"description":737},"Tool Experience","当前轨迹中该工具的经验。","ToolUsedStatus",{"type":332,"properties":740,"title":771},{"id":741,"tool_type":743,"tool_value":749,"tool_used_status":752,"create_time":757,"conversation_id":759,"status":761,"update_time":764,"relativity":766,"experience":768},{"type":339,"title":661,"description":742},"工具记忆片段的唯一标识符。",{"type":339,"title":744,"description":745,"enum":746},"Tool Type","工具记忆类型。ToolTrajectoryMemory 表示工具轨迹记忆；ToolSchema 表示工具信息记忆。",[747,748],"ToolTrajectoryMemory","ToolSchema",{"type":339,"title":750,"description":751},"Tool Value","工具记忆的具体内容。",{"type":353,"title":753,"description":754,"items":755},"Tool Used Status","工具轨迹记忆列表，每条记录包含使用的工具及经验信息。",{"$ref":756},"#\u002Fcomponents\u002Fschemas\u002FToolUsedStatus",{"type":339,"title":605,"description":758},"工具记忆创建时间（ISO 8601 格式）。",{"type":339,"title":343,"description":760},"与该工具记忆关联的会话唯一标识符。",{"type":339,"title":568,"description":762,"enum":763},"工具记忆状态，当前为 activated。",[682],{"type":339,"title":608,"description":765},"工具记忆最后一次更新的时间（ISO 8601 格式）。",{"type":370,"title":373,"description":767},"工具记忆与查询内容的相关性分数。",{"type":339,"title":769,"description":770},"Experience","整个轨迹的程序性经验，作为指导任务完成的总体经验。","ToolMemoryDetail",{"type":332,"properties":773},{"name":774,"description":777,"procedure":780,"experience":783,"preference":786,"examples":789,"script":793,"others":796},{"type":339,"title":775,"description":776},"Name","技能 Skill 的名称，用于展示与识别该能力。",{"type":339,"title":778,"description":779},"Description","技能 Skill 的描述。",{"type":339,"title":781,"description":782},"Procedure","完成该任务的推荐流程或操作步骤。",{"type":353,"title":769,"items":784,"description":785},{"type":339},"来自历史任务的经验沉淀，包括最佳实践、常见误区与避坑建议。",{"type":353,"title":707,"items":787,"description":788},{"type":339},"用户在该类任务中的偏好设定，例如风格、约束条件或优先级。",{"type":353,"title":790,"items":791,"description":792},"Examples",{"type":339},"该技能 Skill 的典型使用示例，帮助 Agent 理解输入输出形式与使用边界。",{"type":332,"title":794,"description":795},"Script","用于完成该 Skill 的可复用代码脚本或逻辑实现。",{"type":332,"title":797,"description":798},"Others","其他补充信息。",{"type":332,"properties":800,"title":830},{"id":801,"skill_value":803,"skill_url":808,"skill_type":811,"create_time":814,"conversation_id":816,"status":818,"confidence":821,"tags":823,"update_time":826,"relativity":828},{"type":339,"title":661,"description":802},"技能 Skill 的唯一标识符，系统内部用于区分不同的记忆条目。",{"type":332,"title":804,"description":805,"items":806},"Skill Value","技能 Skill 的具体内容。",{"$ref":807},"#\u002Fcomponents\u002Fschemas\u002FSkillValue",{"type":339,"title":809,"description":810},"Skill Url","技能 Skill 的下载链接，下载为可复用的技能实现或配置文件。",{"type":339,"title":812,"description":813},"Skill Type","技能 Skill 的类型。",{"type":339,"title":605,"description":815},"技能 Skill 内容创建的时间，通常为 ISO 8601 格式。",{"type":339,"title":343,"description":817},"与该技能 Skill 关联的会话的唯一标识符。",{"type":339,"title":568,"description":819,"enum":820},"技能 Skill 的状态，当前所有检索到的技能 Skill 都是 activated。activated：激活状态，当前可检索和使用的技能 Skill 。",[682],{"type":370,"title":685,"description":822},"技能 Skill 的置信度分数，范围 0~1，数值越接近 1 表示该技能 Skill 越准确可靠。\n置信度分数会随着模型对该技能 Skill 的推理次数增加而逐渐衰减，用于反映技能 Skill 随着时间或使用频率可能产生的不确定性。",{"type":353,"items":824,"description":825},{"type":339},"与技能 Skill 相关的标签列表，用于分类、检索或主题标记。数组中的每个元素都是string，例如 [\"人物\", \"事件\", \"工作\"]。",{"type":339,"title":608,"description":827},"技能 Skill 最后一次被修改或更新的时间，通常为 ISO 8601 格式",{"type":339,"title":373,"description":829},"查询内容与该技能 Skill 的相关性分数，范围 0~1，数值越接近 1 表示越相关。","SkillDetail",{"type":332,"title":832,"properties":833},"SearchMemoryResponseData",{"memory_detail_list":834,"preference_detail_list":839,"tool_memory_detail_list":844,"preference_note":849,"skill_detail_list":852},{"type":353,"title":835,"description":836,"items":837},"Memory Detail List","返回的事实记忆片段详情列表。",{"$ref":838},"#\u002Fcomponents\u002Fschemas\u002FMemoryDetail",{"type":353,"title":840,"description":841,"items":842},"Preference Detail List","返回的偏好记忆片段详情列表。",{"$ref":843},"#\u002Fcomponents\u002Fschemas\u002FPreferenceDetail",{"type":353,"title":845,"description":846,"items":847},"Tool Memory Detail List","返回的工具记忆片段详情列表。",{"$ref":848},"#\u002Fcomponents\u002Fschemas\u002FToolMemoryDetail",{"type":339,"title":850,"description":851},"Preference Note","召回偏好记忆时，返回的偏好使用说明。",{"type":353,"title":853,"description":854,"items":855},"Skill Detail List","返回的技能 Skill 详情列表。",{"$ref":856},"#\u002Fcomponents\u002Fschemas\u002FSkillDetail",{"type":332,"required":858,"properties":859,"title":864},[431,432],{"code":860,"data":861,"message":863},{"type":358,"format":579,"title":435,"description":436,"example":371},{"$ref":862},"#\u002Fcomponents\u002Fschemas\u002FSearchMemoryResponseData",{"type":339,"title":440,"description":583},"SearchMemoryResponse",{"type":332,"required":866,"properties":867,"title":884},[334],{"user_id":868,"page":870,"size":873,"filter":877,"include_preference":879,"include_tool_memory":882},{"type":339,"title":340,"description":869},"获取的记忆所关联的用户唯一标识符。",{"type":358,"title":871,"description":872,"default":372},"Page","分页页码，用于在返回结果较多时进行分页控制。",{"type":358,"title":874,"description":875,"default":876},"Size","指定每一类记忆在当前页返回的条目数量，最大值为50。",10,{"type":332,"title":349,"description":878,"example":351},"记忆过滤的条件，用于在获取记忆前精确限定记忆范围。可用字段包括：\"agent_id\", \"app_id\", \"create_time\", \"update_time\"以及\"info\"中的字段。支持逻辑运算符（and，or）和比较运算符（gte、lte、gt、lt）。对于\"info\"字段，支持过滤传入的\"business_type\", \"biz_id\", \"scene\"和其他自定义字段。",{"type":363,"title":880,"description":881,"default":45},"IncludePreference","是否要返回偏好记忆。",{"type":363,"title":646,"description":883,"default":45},"是否要返回工具记忆。","GetMemoryRequest",{"type":332,"title":886,"properties":887},"GetMemoryResponseData",{"memory_detail_list":888,"preference_detail_list":918,"tool_memory_detail_list":944,"total":964,"size":966,"current":968,"pages":970},{"type":353,"title":835,"description":889,"items":890},"获取的事实记忆列表。",{"type":332,"title":891,"properties":892},"Memory Detail",{"id":893,"memory_key":894,"memory_value":895,"memory_type":896,"create_time":899,"conversation_id":901,"status":903,"confidence":906,"tags":908,"update_time":911,"sources":913,"info":916},{"type":339,"description":662},{"type":339,"description":665},{"type":339,"description":668},{"type":339,"enum":897,"description":898},[671,672,673],"事实记忆类型。",{"type":339,"description":900},"事实记忆创建时间，ISO 8601 格式。",{"type":339,"description":902},"与该事实记忆关联的会话唯一标识符。",{"type":339,"description":904,"enum":905},"事实记忆状态，当前仅返回激活状态。",[682],{"type":370,"description":907},"事实记忆的置信度分数，范围 0~1，数值越大表示越可靠；该值可能随时间或使用频率衰减。",{"type":353,"items":909,"description":910},{"type":339},"与事实记忆相关的标签列表，用于分类或检索，例如 [\"人物\",\"事件\"]。",{"type":339,"description":912},"事实记忆最后一次更新的时间，ISO 8601 格式。",{"type":353,"items":914,"description":915},{"type":332,"additionalProperties":45},"事实记忆的原始消息内容列表。",{"type":332,"additionalProperties":45,"description":917},"添加消息时自定义的元信息字段。",{"type":353,"title":840,"description":919,"items":920},"偏好记忆列表。",{"type":332,"properties":921},{"id":922,"preference_type":924,"preference":927,"reasoning":929,"create_time":931,"conversation_id":933,"status":935,"update_time":938,"sources":940,"info":943},{"type":339,"description":923},"偏好记忆的唯一标识符。",{"type":339,"enum":925,"description":926},[702,703],"偏好记忆类型。",{"type":339,"description":928},"偏好记忆的具体内容描述。",{"type":339,"description":930},"该偏好记忆被提取或形成的原因说明。",{"type":339,"description":932},"偏好记忆创建时间，ISO 8601 格式。",{"type":339,"description":934},"与该偏好记忆关联的会话唯一标识符。",{"type":339,"description":936,"enum":937},"偏好记忆状态，当前仅返回激活状态。",[682],{"type":339,"description":939},"偏好记忆最后一次更新的时间，ISO 8601 格式。",{"type":353,"items":941,"description":942},{"type":332,"additionalProperties":45},"偏好记忆的原始消息内容列表。",{"type":332,"additionalProperties":45,"description":917},{"type":353,"title":845,"description":846,"items":945},{"type":332,"title":946,"properties":947},"Tool Memory Detail",{"id":948,"tool_type":949,"tool_value":951,"tool_used_status":952,"create_time":954,"conversation_id":955,"status":956,"update_time":958,"experience":959,"sources":960,"info":963},{"type":339,"title":661,"description":742},{"type":339,"title":744,"description":745,"enum":950},[747,748],{"type":339,"title":750,"description":751},{"type":353,"title":753,"description":754,"items":953},{"$ref":756},{"type":339,"title":605,"description":758},{"type":339,"title":343,"description":760},{"type":339,"title":568,"description":762,"enum":957},[682],{"type":339,"title":608,"description":765},{"type":339,"title":769,"description":770},{"type":353,"items":961,"description":962},{"type":332,"additionalProperties":45},"工具记忆的原始消息内容列表。",{"type":332,"additionalProperties":45,"description":917},{"type":358,"description":965},"获取的各类记忆总数中的最大值，用于判断是否存在下一页。",{"type":358,"description":967},"每一类记忆在当前页返回的条目数量。",{"type":358,"description":969},"当前获取的记忆所在页数。",{"type":358,"description":971},"获取记忆的总页数。",{"type":332,"required":973,"title":974,"properties":975},[431,432],"GetMemoryResponse",{"code":976,"data":978,"message":980},{"type":370,"title":435,"description":977},"接口状态码，更多内容可查阅错误码列表了解详情。",{"$ref":979},"#\u002Fcomponents\u002Fschemas\u002FGetMemoryResponseData",{"type":339,"title":440,"description":583},{"type":332,"properties":982,"title":989},{"memory_ids":983,"user_id":987},{"type":353,"items":984,"title":985,"description":986},{"type":339},"Memory IDs","需要删除的记忆 ID 列表。每个 ID 均来自 search\u002Fmemory 或 get\u002Fmemory 接口返回的 id 字段。",{"type":339,"title":340,"description":988},"删除用户的所有记忆，该用户关联的唯一ID标识符。","DeleteMemoryRequest",{"type":332,"properties":991,"title":1001},{"code":992,"data":993,"message":999},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":995,"description":998},"Data",{"success":996},{"type":363,"title":562,"description":997,"example":45},"是否删除成功。true 表示成功，false 表示失败。","返回删除信息",{"type":339,"title":440,"description":1000},"删除提示信息","DeleteMemoryResponse",{"type":332,"required":1003,"properties":1005,"title":1025},[334,335,1004],"feedback_content",{"user_id":1006,"conversation_id":1008,"feedback_content":1010,"agent_id":1013,"app_id":1015,"feedback_time":1017,"allow_public":1020,"allow_knowledgebase_ids":1022},{"type":339,"title":340,"description":1007},"反馈内容所关联的用户唯一标识符。",{"type":339,"title":343,"description":1009},"反馈内容所关联的会话唯一标识符。",{"type":339,"title":1011,"description":1012},"Feedback Content","反馈内容文本。",{"type":339,"title":405,"description":1014},"反馈内容所关联的Agent唯一标识符，主要用于在检索记忆时查询某用户与该Agent的专属记忆。",{"type":339,"title":402,"description":1016},"反馈内容所关联的应用唯一标识符，主要用于在检索记忆时查询某用户在该App下的专属记忆。",{"type":339,"title":1018,"description":1019},"Feedback Time","反馈发生的时间，可传入结构化时间或自然语言时间描述。传入该参数能够让记忆携带时间信息。",{"type":363,"title":416,"description":1021,"default":122},"反馈内容，产生的记忆，是否允许写入公共记忆库。开启后，生成的记忆可被项目下的其他用户检索。 ",{"type":353,"items":1023,"title":420,"description":1024},{"type":339},"反馈内容产生的记忆，允许被写入的知识库列表。","AddFeedbackRequest",{"type":332,"required":1027,"properties":1028,"title":1040},[431,432],{"code":1029,"data":1030,"message":1038},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1031},{"success":1032,"status":1034,"task_id":1036},{"type":363,"title":562,"description":1033},"是否添加成功。true 表示成功，false 表示失败。",{"type":339,"title":568,"description":1035},"任务状态：running（运行中），completed（完成）",{"type":339,"title":565,"description":1037},"任务id",{"type":339,"title":440,"description":1039},"接口提示信息","AddFeedbackResponse",{"type":332,"required":1042,"properties":1044,"title":1047},[1043],"task_id",{"task_id":1045},{"type":339,"title":565,"description":1046},"异步任务ID","GetStatusRequest",{"type":332,"required":1049,"properties":1050,"title":1057},[431,432],{"code":1051,"data":1052,"message":1056},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1053},{"status":1054},{"type":339,"title":568,"enum":1055,"description":573},[570,571,572],{"type":339,"title":440,"description":1039},"GetStatusResponse",{"type":332,"required":1059,"properties":1061,"title":1068},[1060],"knowledgebase_name",{"knowledgebase_name":1062,"knowledgebase_description":1065},{"type":339,"title":1063,"description":1064},"Knowledgebase Name","知识库名称",{"type":339,"title":1066,"description":1067},"Knowledgebase Description","描述信息","CreateKnowledgebaseRequest",{"type":332,"required":1070,"properties":1071,"title":1079},[431,432],{"code":1072,"data":1073,"message":1078},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1074},{"id":1075},{"type":339,"title":1076,"description":1077},"KNOWLEDGEBASE ID","创建成功后返回的知识库 ID",{"type":339,"title":440,"description":1039},"CreateKnowledgebaseResponse",{"type":332,"required":1081,"properties":1083,"title":1087},[1082],"knowledgebase_id",{"knowledgebase_id":1084},{"type":339,"title":1085,"description":1086},"Knowledgebase ID","要移除的知识库ID","DeleteKnowledgebaseRequest",{"type":332,"required":1089,"properties":1090,"title":1097},[431,432],{"code":1091,"data":1092,"message":1096},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1093},{"success":1094},{"type":363,"title":562,"description":1095},"是否移除成功。true 表示成功，false 表示失败。",{"type":339,"title":440,"description":1039},"DeleteKnowledgebaseResponse",{"type":332,"required":1099,"properties":1100,"title":1112},[1082,483],{"knowledgebase_id":1101,"file":1103},{"type":339,"title":1085,"description":1102},"目标知识库ID",{"type":353,"title":1104,"description":1105,"items":1106},"File","上传文档列表",{"type":332,"properties":1107},{"name":1108,"content":1110},{"type":339,"title":775,"description":1109},"上传的文档名称",{"type":339,"title":603,"description":1111},"文档内容输入方式支持 URL 或 Base64 编码，可上传的文档类型包括：PDF、DOCX、DOC、TXT、JSON、MD、XML。支持单次上传最多20个文档，单个文档不超过100MB、500页、20,000 Token数。","UploadFileRequest",{"type":332,"required":1114,"properties":1115,"title":1131},[431,432],{"code":1116,"data":1117,"message":1129},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1118},{"id":1119,"name":1121,"sizeMB":1123,"status":1126},{"type":339,"title":661,"description":1120},"文档ID",{"type":339,"title":775,"description":1122},"文档名称",{"type":358,"title":1124,"description":1125},"Size MB","文档大小",{"type":339,"title":568,"description":1127,"enum":1128},"文档处理状态",[570,571,572],{"type":339,"title":440,"description":1130},"接口信息","UploadFileResponse",{"type":332,"required":1133,"properties":1135,"title":1140},[1134],"file_ids",{"file_ids":1136},{"type":353,"items":1137,"title":1138,"description":1139},{"type":339},"File IDs","文件ID列表","GetFileRequest",{"type":332,"required":1142,"properties":1143,"title":1157},[431,432],{"code":1144,"data":1145,"message":1156},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1146},{"file_detail_list":1147},{"type":353,"items":1148,"title":1155},{"type":332,"properties":1149},{"id":1150,"name":1151,"size":1152,"status":1153},{"type":339,"title":661,"description":1120},{"type":339,"title":775,"description":1122},{"type":339,"title":874,"description":1125},{"type":339,"title":568,"description":1127,"enum":1154},[570,571,572],"File Detail List",{"type":339,"title":440,"description":1039},"GetFileResponse",{"type":332,"required":1159,"properties":1160,"title":1164},[1134],{"file_ids":1161},{"type":353,"items":1162,"title":1138,"description":1163},{"type":339},"要删除的文档 ID 列表","DeleteFileRequest",{"type":332,"required":1166,"properties":1167,"title":1173},[431,432],{"code":1168,"data":1169,"message":1172},{"type":358,"title":435,"description":436},{"type":332,"title":994,"properties":1170},{"success":1171},{"type":363,"title":562,"description":997},{"type":339,"title":440,"description":1039},"DeleteFileResponse",{"type":332,"title":1175,"properties":1176},"ExtractMemoryItem",{"memory_key":1177,"memory_value":1180,"memory_type":1183,"tags":1185},{"type":339,"title":664,"description":1178,"example":1179},"记忆主题，对抽取到的事实记忆的概括性描述。","用户基本信息",{"type":339,"title":667,"description":1181,"example":1182},"记忆内容，对抽取到的事实记忆的详细描述。","用户张三，28岁，在杭州从事后端开发，喜欢打羽毛球。",{"type":339,"title":674,"description":1184,"example":673},"记忆类型分类标识。\u003Cbr>示例：UserMemory、LongTermMemory。",{"type":353,"items":1186,"title":409,"description":1187,"example":1188},{"type":339},"记忆标签列表，用于对记忆内容进行分类标注。",[1189,1190,1191],"人物","职业","爱好",{"type":332,"title":1193,"properties":1194},"ExtractPreferenceItem",{"preference":1195,"reasoning":1198,"preference_type":1201},{"type":339,"title":707,"description":1196,"example":1197},"偏好描述，对抽取到的用户偏好的具体内容。","用户明确表示希望回复尽量简洁。",{"type":339,"title":710,"description":1199,"example":1200},"推理依据，说明该偏好是如何从对话中推断得出的。","对话中用户直接说明偏好。",{"type":339,"title":704,"description":1202,"enum":1203,"example":702},"偏好类型：显性偏好为用户明确表达，隐性偏好为从行为或语境推断。",[702,703],{"type":332,"title":1205,"properties":1206},"ExtractMemoryResponseData",{"success":1207,"memory_detail_list":1209,"preference_detail_list":1213},{"type":363,"title":562,"description":1208},"是否抽取成功。",{"type":353,"title":835,"description":1210,"items":1211},"事实记忆列表。当请求中 extraction_types 包含 memory，或未传 extraction_types 时返回。",{"$ref":1212},"#\u002Fcomponents\u002Fschemas\u002FExtractMemoryItem",{"type":353,"title":840,"description":1214,"items":1215},"偏好记忆列表。当请求中 extraction_types 包含 preference，或未传 extraction_types 时返回；结果中可包含显性偏好与隐性偏好。",{"$ref":1216},"#\u002Fcomponents\u002Fschemas\u002FExtractPreferenceItem",{"type":332,"required":1218,"title":1219,"properties":1220},[461,462],"ExtractMemoryMessage",{"role":1221,"content":1223},{"type":339,"title":471,"enum":1222,"description":472},[55,58,469],{"type":339,"title":603,"description":500},{"type":332,"required":1225,"title":1226,"properties":1227},[523],"ExtractMemoryRequest",{"messages":1228,"extraction_types":1232},{"type":353,"title":530,"description":1229,"items":1230},"需要抽取记忆的消息对象数组，数组中所有消息的总 Token 数上限为8k。",{"$ref":1231},"#\u002Fcomponents\u002Fschemas\u002FExtractMemoryMessage",{"type":353,"title":1233,"description":1234,"items":1235},"Extraction Types","\u003Cp>限定抽取的记忆类型；不传则抽取全部支持的类型。\u003C\u002Fp>\u003Cul>\u003Cli>\u003Ccode>memory\u003C\u002Fcode>：事实记忆，从对话中提取用户相关的事实性信息。\u003C\u002Fli>\u003Cli>\u003Ccode>preference\u003C\u002Fcode>：偏好记忆，从对话中提取用户的偏好信息，包含显性偏好（用户明确表达）和隐性偏好（从行为推断）。\u003C\u002Fli>\u003C\u002Ful>",{"type":339,"enum":1236},[219,220],{"type":332,"required":1238,"title":1239,"properties":1240},[431,432],"ExtractMemoryResponse",{"code":1241,"data":1242,"message":1244},{"type":358,"format":579,"title":435,"description":436,"example":371},{"$ref":1243},"#\u002Fcomponents\u002Fschemas\u002FExtractMemoryResponseData",{"type":339,"title":440,"description":583,"example":584},"cn\u002Fapi_docs\u002Fapi","w2vUuidp7M4BbR_gcYFLuuYenI_jVKkyn57DD61yxSs",{"id":1248,"extension":24,"meta":1249,"stem":2192,"__hash__":2193},"dashboardApi\u002Fen\u002Fapi_docs\u002Fapi.json",{"openapi":26,"info":1250,"servers":1251,"security":1253,"paths":1256,"components":1470},{"title":28,"description":29,"version":30},[1252],{"url":33,"description":34},[1254],{"TokenAuth":1255},[],{"\u002Fadd\u002Fmessage":1257,"\u002Fget\u002Fmessage":1283,"\u002Fsearch\u002Fmemory":1296,"\u002Fchat":1310,"\u002Fget\u002Fmemory":1334,"\u002Fdelete\u002Fmemory":1346,"\u002Fadd\u002Ffeedback":1358,"\u002Fextract\u002Fmemory":1370,"\u002Fget\u002Fstatus":1393,"\u002Fcreate\u002Fknowledgebase":1405,"\u002Fdelete\u002Fknowledgebase":1418,"\u002Fadd\u002Fknowledgebase-file":1431,"\u002Fget\u002Fknowledgebase-file":1444,"\u002Fdelete\u002Fknowledgebase-file":1457},{"post":1258},{"summary":41,"description":1259,"operationId":43,"requestBody":1260,"responses":1278},"This API allows you to add one or more messages to a specific conversation. As illustrated in the examples bellow, you can add messages in real time during a user-assistant interaction, import historical messages in bulk, or enrich the conversation with user preferences and behavior data. All added messages are transformed into memories by MemOS, enabling their retrieval in future conversations to support chat history management, user behavior tracking, and personalized interactions.",{"required":45,"content":1261},{"application\u002Fjson":1262},{"schema":1263,"example":1264},{"$ref":49},{"user_id":51,"conversation_id":52,"messages":1265},[1266,1268,1270,1272,1274,1276],{"role":55,"content":1267},"I want to travel during summer vacation, can you recommend something?",{"role":58,"content":1269},"Sure! Are you traveling alone, with family or with friends?",{"role":55,"content":1271},"I'm bringing my kid. My family always travels together.",{"role":58,"content":1273},"Got it, so you're traveling with your children as a family, right?",{"role":55,"content":1275},"Yes, with both kids and elderly, we usually travel as a whole family.",{"role":58,"content":1277},"Understood, I'll recommend destinations suitable for family trips.",{"200":1279},{"description":70,"content":1280},{"application\u002Fjson":1281},{"schema":1282},{"$ref":74},{"post":1284},{"summary":77,"description":1285,"operationId":79,"requestBody":1286,"responses":1291},"This API retrieves the historical conversation records between a user and the assistant for a specified session, with the option to limit the number of results. As shown in the examples bellow, you can use the returned recent messages as references for the model when generating responses, maintaining dialogue coherence and contextual understanding. It can also be used to restore chat context when a user refreshes or reopens the app, ensuring a seamless user experience and supporting personalized interactions.",{"required":45,"content":1287},{"application\u002Fjson":1288},{"schema":1289,"example":1290},{"$ref":84},{"user_id":51,"conversation_id":86,"message_limit_number":87},{"200":1292},{"description":70,"content":1293},{"application\u002Fjson":1294},{"schema":1295},{"$ref":93},{"post":1297},{"summary":96,"description":1298,"operationId":98,"requestBody":1299,"responses":1305},"This API allows you to query a user’s memory and returns the fragments most relevant to the input. These can serve as references for the model when generating responses. As shown in the examples bellow, You can retrieve memory in real time during a user’s conversation with the AI, or perform a global search across their entire memory to create user profiles or support personalized recommendations, improving both dialogue coherence and personalization.\u003Cbr>\u003Cbr>In the latest update, in addition to “Fact Memory”, the system now supports “Preference Memory”, enabling LLM to respond in a way that better understands the user.",{"required":45,"content":1300},{"application\u002Fjson":1301},{"schema":1302,"example":1303},{"$ref":103},{"query":1304,"user_id":51,"conversation_id":86},"Any suggestions for where to go during National Day?",{"200":1306},{"description":70,"content":1307},{"application\u002Fjson":1308},{"schema":1309},{"$ref":111},{"post":1311},{"summary":114,"description":11,"operationId":115,"requestBody":1312,"responses":1327},{"required":45,"content":1313},{"application\u002Fjson":1314},{"schema":1315,"example":1316},{"$ref":120},{"user_id":51,"stream":122,"query":1317,"model_name":124,"conversation_id":125,"knowledgebase_ids":1318,"filter":1319,"system_prompt":1323,"add_message_on_answer":122,"allow_public":122,"allow_knowledgebase_ids":1324,"agent_id":135,"app_id":136,"tags":1325,"info":1326,"max_tokens":139,"temperature":140,"top_p":141},"What fun places are in Shanghai?",[127],{"and":1320},[1321],{"create_time":1322},{"gt":132},"Recommend parks",[],[],{},{"200":1328},{"description":70,"content":1329},{"application\u002Fjson":1330,"text\u002Fevent-stream":1332},{"schema":1331},{"$ref":147},{"schema":1333},{"$ref":150},{"post":1335},{"summary":153,"description":1336,"operationId":155,"requestBody":1337,"responses":1341},"Retrieve a user’s memories, including factual, preference, and tool memories.",{"required":45,"content":1338},{"application\u002Fjson":1339},{"schema":1340},{"$ref":160},{"200":1342},{"description":70,"content":1343},{"application\u002Fjson":1344},{"schema":1345},{"$ref":166},{"post":1347},{"summary":169,"description":1348,"operationId":171,"requestBody":1349,"responses":1353},"This API is used to delete specified user memories, supporting batch deletion.",{"required":45,"content":1350},{"application\u002Fjson":1351},{"schema":1352},{"$ref":176},{"200":1354},{"description":70,"content":1355},{"application\u002Fjson":1356},{"schema":1357},{"$ref":182},{"post":1359},{"summary":185,"description":1360,"operationId":187,"requestBody":1361,"responses":1365},"This API is used to add feedback to current session messages, allowing MemOS to correct memories based on user feedback.",{"required":45,"content":1362},{"application\u002Fjson":1363},{"schema":1364},{"$ref":192},{"200":1366},{"description":70,"content":1367},{"application\u002Fjson":1368},{"schema":1369},{"$ref":198},{"post":1371},{"summary":5,"description":1372,"operationId":202,"requestBody":1373,"responses":1388},"Uses MemOS’s self-developed extraction model to extract and return fact and preference memories directly from conversation messages.",{"required":45,"content":1374},{"application\u002Fjson":1375},{"schema":1376,"example":1377},{"$ref":207},{"messages":1378,"extraction_types":1387},[1379,1381,1383,1385],{"role":55,"content":1380},"I’ve planned a summer trip to Guangzhou. What chain hotels can you recommend for accommodation?",{"role":58,"content":1382},"You can consider options like 7 Days Inn, All Seasons, Hilton, and others.",{"role":55,"content":1384},"I’ll go with 7 Days Inn.",{"role":58,"content":1386},"Alright—ask me anytime if you have more questions.",[219,220],{"200":1389},{"description":70,"content":1390},{"application\u002Fjson":1391},{"schema":1392},{"$ref":226},{"post":1394},{"summary":229,"description":1395,"operationId":231,"requestBody":1396,"responses":1400},"Get the status of an asynchronous processing task.",{"required":45,"content":1397},{"application\u002Fjson":1398},{"schema":1399},{"$ref":236},{"200":1401},{"description":70,"content":1402},{"application\u002Fjson":1403},{"schema":1404},{"$ref":242},{"post":1406},{"summary":1407,"description":1408,"operationId":247,"requestBody":1409,"responses":1413},"Create Knowledgebase","Create a knowledgebase associated with the project.",{"required":45,"content":1410},{"application\u002Fjson":1411},{"schema":1412},{"$ref":252},{"200":1414},{"description":70,"content":1415},{"application\u002Fjson":1416},{"schema":1417},{"$ref":258},{"post":1419},{"summary":1420,"description":1421,"operationId":263,"requestBody":1422,"responses":1426},"Delete Knowledgebase","Delete a knowledgebase from the current project. To permanently delete it, please operate from the Console - Knowledgebase page.",{"required":45,"content":1423},{"application\u002Fjson":1424},{"schema":1425},{"$ref":268},{"200":1427},{"description":70,"content":1428},{"application\u002Fjson":1429},{"schema":1430},{"$ref":274},{"post":1432},{"summary":1433,"description":1434,"operationId":279,"requestBody":1435,"responses":1439},"Create Knowledgebase File","Upload a document to a specified knowledgebase.",{"required":45,"content":1436},{"application\u002Fjson":1437},{"schema":1438},{"$ref":284},{"200":1440},{"description":70,"content":1441},{"application\u002Fjson":1442},{"schema":1443},{"$ref":290},{"post":1445},{"summary":1446,"description":1447,"operationId":295,"requestBody":1448,"responses":1452},"Get Knowledgebase File","Get information about a specified document.",{"required":45,"content":1449},{"application\u002Fjson":1450},{"schema":1451},{"$ref":300},{"200":1453},{"description":70,"content":1454},{"application\u002Fjson":1455},{"schema":1456},{"$ref":306},{"post":1458},{"summary":1459,"description":1460,"operationId":311,"requestBody":1461,"responses":1465},"Delete Knowledgebase File","Delete a document from a specified knowledgebase.",{"required":45,"content":1462},{"application\u002Fjson":1463},{"schema":1464},{"$ref":316},{"200":1466},{"description":70,"content":1467},{"application\u002Fjson":1468},{"schema":1469},{"$ref":322},{"securitySchemes":1471,"schemas":1474},{"TokenAuth":1472},{"type":326,"name":327,"in":328,"description":1473},"Token API_key, available in \u003Ca href=\"https:\u002F\u002Fmemos-dashboard.openmem.net\u002Fapikeys\u002F\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\" target=\"_blank\">API Console > API Keys\u003C\u002Fa>",{"ChatRequest":1475,"ChatResponseData":1527,"ChatResponse":1531,"ChatStreamResponse":1538,"AddMessageRequest":1550,"MessageInput":1584,"AddMessageResponse":1635,"OpenMemAddMessageResponse":1643,"GetMessageRequest":1653,"GetMessageResponse":1662,"GetMessageResponseData":1670,"MessageDetail":1676,"SearchMemoryRequest":1687,"SearchMemoryResponse":1714,"SearchMemoryResponseData":1721,"MemoryDetail":1738,"PreferenceDetail":1765,"ToolUsedStatus":1787,"ToolMemoryDetail":1797,"SkillValue":1822,"SkillDetail":1843,"GetMemoryRequest":1870,"GetMemoryResponseData":1884,"GetMemoryResponse":1966,"DeleteMemoryRequest":1974,"DeleteMemoryResponse":1981,"AddFeedbackRequest":1991,"AddFeedbackResponse":2011,"GetStatusRequest":2023,"GetStatusResponse":2028,"CreateKnowledgebaseRequest":2037,"CreateKnowledgebaseResponse":2043,"DeleteKnowledgebaseRequest":2052,"DeleteKnowledgebaseResponse":2057,"UploadFileRequest":2066,"UploadFileResponse":2079,"GetFileRequest":2095,"GetFileResponse":2101,"DeleteFileRequest":2116,"DeleteFileResponse":2122,"ExtractMemoryItem":2130,"ExtractPreferenceItem":2147,"ExtractMemoryResponseData":2158,"ExtractMemoryMessage":2168,"ExtractMemoryRequest":2176,"ExtractMemoryResponse":2186},{"type":332,"required":1476,"properties":1477,"title":422},[334,335,336],{"user_id":1478,"conversation_id":1480,"query":1482,"filter":1484,"knowledgebase_ids":1486,"memory_limit_number":1489,"include_preference":1491,"preference_limit_number":1493,"relativity":1495,"model_name":1497,"system_prompt":1500,"stream":1502,"max_tokens":1504,"temperature":1506,"top_p":1508,"add_message_on_answer":1510,"app_id":1512,"agent_id":1514,"tags":1516,"info":1519,"allow_public":1522,"allow_knowledgebase_ids":1524},{"type":339,"title":340,"description":1479},"Unique identifier of the user associated with the conversation.",{"type":339,"title":343,"description":1481},"Unique identifier of the conversation. Providing this clarifies the current session, prioritizing its memory over historical sessions. If omitted, cross-session memory retrieval is performed for more relevant responses.",{"type":339,"title":346,"description":1483},"User input content.",{"type":332,"title":349,"description":1485,"example":351},"Filter conditions, used to precisely limit the memory scope before retrieval. Available fields include: \"agent_id\", \"app_id\", \"create_time\", \"update_time\", and specific fields in \"info\". Supports logical operators (and, or) and comparison operators (gte, lte, gt, lt). For the \"info\" field, supports filtering by \"business_type\", \"biz_id\", \"scene\", and other custom fields.",{"type":353,"items":1487,"title":355,"description":1488},{"type":339},"Specifies the scope of knowledge bases accessible for the current search. Defaults to empty, meaning no knowledge bases are searched.Pass specific Knowledgebase IDs to search within that designated repository; pass \"all\" to search across all associated knowledgebases within the project.",{"type":358,"title":359,"description":1490,"default":361},"Maximum number of memories that can be recalled: as long as the relevance threshold (relativity) is met, up to this many memories may be returned. Default is 9, maximum is 25.",{"type":363,"title":364,"description":1492,"default":45},"Whether to recall preference memories. When enabled, the system intelligently recalls memories related to user preferences based on the query. Default = true.",{"type":358,"title":367,"description":1494,"default":361},"Maximum number of preferred memories that can be recalled: as long as the relevance threshold (relativity) is met, up to this many preference memories may be returned. Default is 9, maximum is 25.",{"type":370,"minimum":371,"maximum":372,"title":373,"description":1496,"default":375},"Relevance threshold (0–1) for recalled memories. Filters out low-relevance memories and, together with the maximum counts for factual and preferred recalls, constrains the final results. When omitted, the system default threshold is used. A value of 0 disables relevance filtering.",{"type":339,"enum":1498,"title":380,"description":1499,"default":379},[378,124,379],"Specifies the concrete conversation model.",{"type":339,"title":384,"description":1501},"Custom system instructions.",{"type":363,"title":387,"description":1503,"default":122},"Whether to enable streaming response.",{"type":358,"title":390,"description":1505,"default":139},"Indicates the maximum number of generated tokens.",{"type":370,"title":393,"description":1507,"default":140},"Controls generation randomness. Range: 0 ≤ x ≤ 2.",{"type":370,"title":396,"description":1509,"default":141},"Nucleus sampling parameter. Range: 0 ≤ x ≤ 1.",{"type":363,"title":399,"description":1511,"default":45},"Whether to automatically write user and assistant conversation content into memory. When enabled, developers do not need to call the add\u002Fmessage API to add messages as memory.",{"type":339,"title":402,"description":1513},"Unique identifier of the application associated with the conversation.",{"type":339,"title":405,"description":1515},"Unique identifier of the Agent associated with the conversation.",{"type":353,"items":1517,"title":409,"description":1518},{"type":339},"List of custom tags used to mark the topic or category of the conversation.",{"type":332,"additionalProperties":1520,"title":413,"description":1521},{"type":339},"Custom metadata field capable of storing any structured data related to the conversation, such as location, source, version, etc., primarily for precise filtering or source tracking during retrieval.",{"type":363,"title":416,"description":1523,"default":122},"Whether to allow adding to public memory.",{"type":353,"items":1525,"title":420,"description":1526},{"type":339},"List of knowledgebases where memories generated from added messages are allowed to be written.",{"type":332,"title":424,"properties":1528},{"response":1529},{"type":339,"title":427,"description":1530},"Specific content of the answer.",{"type":332,"required":1532,"properties":1533,"title":442},[431,432],{"code":1534,"data":1536,"message":1537},{"type":358,"title":435,"description":1535},"API status code. See \u003Ca href=\"\u002Fapi_docs\u002Fhelp\u002Ferror_codes\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\">Error Code List\u003C\u002Fa> for details.",{"$ref":438},{"type":339,"title":440,"description":440},{"type":332,"properties":1539,"title":458},{"event":1540,"data":1542},{"type":339,"description":1541,"default":432},"Stream event name, currently defaults to message.",{"type":332,"description":1543,"properties":1544},"Streamed data content.",{"type":1545,"data":1548},{"type":339,"description":1546,"enum":1547},"Stream message type, used to identify the semantic category of the current data.\u003Cbr>reasoning: Reasoning content\u003Cbr>text: Normal text content\u003Cbr>end: End of stream indicator",[453,454,455],{"type":339,"description":1549},"Streamed text content.",{"type":332,"required":1551,"properties":1552,"title":558},[334,335,523],{"user_id":1553,"conversation_id":1555,"messages":1557,"agent_id":1560,"app_id":1562,"tags":1564,"info":1568,"allow_public":1576,"allow_knowledgebase_ids":1578,"async_mode":1582},{"type":339,"title":340,"description":1554},"Unique identifier of the user associated with the message.",{"type":339,"title":343,"description":1556},"Unique identifier of the conversation.",{"type":353,"title":530,"description":1558,"items":1559},"Array of message objects representing the memory content. The total token limit for the message array is 8k. Each object contains:",{"$ref":533},{"type":339,"description":1561},"Unique identifier of the Agent associated with the added message, primarily used to query exclusive memories between a user and that Agent during retrieval.",{"type":339,"description":1563},"Unique identifier of the App associated with the added message, primarily used to query exclusive memories of a user under that App during retrieval.",{"type":353,"items":1565,"description":1566,"default":1567},{"type":339},"List of custom tags used to mark the topic or category of the added message.",[],{"type":332,"additionalProperties":1569,"description":1575},{"oneOf":1570},[1571,1572,1574],{"type":339},{"type":353,"items":1573},{"type":339},{"type":370},"Custom metadata field capable of storing any structured data related to the added message, such as location, source, version, etc., primarily for precise filtering or source tracking during retrieval.",{"type":363,"description":1577,"default":122},"Whether memories generated from the added message are allowed to be written to the public memory store. When enabled, generated memories can be retrieved by other users in the project.",{"type":353,"items":1579,"description":1580,"default":1581},{"type":339},"Scope of knowledgebases where memories generated from the added message are allowed to be written.",[],{"type":363,"description":1583,"default":45},"Whether to enable asynchronous memory addition. When enabled, memory will be added asynchronously in the background to avoid blocking the call chain.",{"type":332,"required":1585,"properties":1586,"title":520},[461,462],{"chat_time":1587,"role":1589,"content":1592,"tool_call_id":1617,"tool_calls":1619},{"type":339,"title":465,"description":1588},"Time of the conversation, as a structured timestamp or Chinese text. Providing this parameter allows memory to include time information.",{"type":339,"enum":1590,"title":471,"description":1591},[55,58,469,470],"Sender role.",{"title":603,"description":1593,"oneOf":1594},"Content of the message.",[1595,1597],{"type":339,"description":1596},"Message text content",{"type":353,"items":1598,"description":1616},{"type":332,"properties":1599,"required":1615},{"type":1600,"text":1603,"image_url":1605,"file":1610},{"type":339,"enum":1601,"description":1602},[454,482,483],"Type of the message sent",{"type":339,"description":1604},"Text message content. Required when type is text.",{"type":332,"description":1606,"properties":1607},"Image message content object.",{"url":1608},{"type":339,"description":1609},"Image message URL. Required when type is image_url.",{"type":332,"description":1611,"properties":1612},"File message content object.",{"file_data":1613},{"type":339,"description":1614},"Accessible file URL or base64. Supports txt \u002F pdf \u002F doc \u002F docx \u002F json \u002F md \u002F xml. Single file max 100MB, 500 pages, total max 20 files. Required when type is file.",[498],"List of multi-modal content",{"type":339,"description":1618},"Unique identifier for the tool call message when role is tool.",{"type":353,"items":1620,"description":1634},{"type":332,"properties":1621},{"id":1622,"type":1624,"function":1627},{"type":339,"description":1623},"Unique identifier for the tool call, used to associate with this tool call. Required in tool_calls.",{"type":339,"description":1625,"enum":1626},"Tool call type, currently only supports function. Required in tool_calls.",[511],{"type":332,"description":1628,"properties":1629},"Defined tool to be called. Required in tool_calls.",{"name":1630,"arguments":1632},{"type":339,"description":1631},"Tool (function) name. Required in tool_calls.",{"type":339,"description":1633},"Tool call arguments, must be a JSON formatted string. Required in tool_calls.","List of tool call information when role is assistant, used to pass when triggering tool calls.",{"type":332,"required":1636,"properties":1637,"title":585},[431,432],{"code":1638,"data":1640,"message":1641},{"type":358,"format":579,"title":435,"description":1639,"example":371},"API status code. See \u003Ca href=\"https:\u002F\u002Fmemos-dashboard.openmem.net\u002Fapikeys\u002F\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\">Error Code\u003C\u002Fa> for details",{"$ref":581},{"type":339,"title":440,"description":1642,"example":584},"API response message, e.g., \"Message added successfully\".",{"type":332,"properties":1644,"title":574,"description":1652},{"success":1645,"task_id":1647,"status":1649},{"type":363,"title":562,"description":1646,"example":45},"Indicates if the message was added successfully. true = success, false = failure.",{"type":339,"title":565,"description":1648},"Unique identifier of the memory processing task.",{"type":339,"title":568,"enum":1650,"description":1651},[570,571,572],"Current status of the memory processing task.","Object representing the result of adding the message.",{"type":332,"required":1654,"properties":1655,"title":596},[334,335],{"user_id":1656,"conversation_id":1658,"message_limit_number":1660},{"type":339,"title":340,"description":1657},"Unique identifier of the user associated with the messages being retrieved.",{"type":339,"title":343,"description":1659},"Unique identifier of the conversation associated with the messages.",{"type":358,"format":579,"title":594,"description":1661,"default":87},"Limits the number of messages returned, controlling the length of the message list. Defaults to 6 if not provided. The maximum allowed value is 50.",{"type":332,"required":1663,"properties":1664,"title":626},[431,432],{"code":1665,"data":1667,"message":1668},{"type":358,"format":579,"title":435,"description":1666,"example":371},"API status code. See \u003Ca href=\"https:\u002F\u002Fmemos-dashboard.openmem.net\u002Fapikeys\u002F\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\">Error Code\u003C\u002Fa> for details.",{"$ref":624},{"type":339,"title":440,"description":1669},"API response message.",{"type":332,"properties":1671,"title":618,"description":1675},{"message_detail_list":1672},{"type":353,"title":614,"description":1673,"items":1674},"List of retrieved message details. Each item includes:",{"$ref":617},"Object containing the retrieved messages.",{"type":332,"properties":1677,"title":610,"description":1673},{"role":1678,"content":1681,"create_time":1683,"update_time":1685},{"type":339,"enum":1679,"title":471,"description":1680,"example":55},[55,58],"Role of the message sender.",{"type":339,"title":603,"description":1682},"Text content of the message.",{"type":339,"title":605,"description":1684},"Creation time of the message.",{"type":339,"title":608,"description":1686},"Last update time of the message.",{"type":332,"required":1688,"properties":1689,"title":657},[334,336],{"user_id":1690,"conversation_id":1692,"query":1694,"filter":1696,"knowledgebase_ids":1698,"memory_limit_number":1700,"include_preference":1701,"preference_limit_number":1703,"include_tool_memory":1705,"tool_memory_limit_number":1707,"include_skill":1709,"skill_limit_number":1711,"relativity":1713},{"type":339,"title":340,"description":1691},"Unique identifier of the user associated with the memory being queried.",{"type":339,"title":343,"description":1693},"Unique identifier of the conversation containing the memory. Providing this ensures the current conversation’s memories have higher priority over other historical.",{"type":339,"title":346,"description":1695},"Text content to search within the memories.The token limit for a single query is 4k.",{"type":332,"title":349,"description":1697,"example":351},"Filter conditions, used to precisely limit the memory scope before retrieval.Available fields include: \"agent_id\", \"app_id\", \"create_time\", \"update_time\", and specific fields in \"info\". Supports logical operators (and, or) and comparison operators (gte, lte, gt, lt). For the \"info\" field, supports filtering by \"business_type\", \"biz_id\", \"scene\", and other custom fields.",{"type":353,"items":1699,"description":1488},{"type":339},{"type":358,"format":579,"title":359,"description":1490,"default":361},{"type":363,"title":364,"description":1702,"default":45},"Whether to enable preference memory recall. When enabled, the system will intelligently retrieve the user’s preference memories based on the query. Defaults to true if not provided.",{"type":358,"format":579,"title":367,"description":1704,"default":361},"Maximum number of preference memories that can be recalled: as long as the relevance threshold (relativity) is met, up to this many preferred memories may be returned. Default is 9, maximum is 25.",{"type":363,"title":646,"description":1706,"default":122},"Whether to enable tool memory recall. When enabled, the system will intelligently retrieve tool-related memories based on the query. Default is false if not provided.",{"type":358,"format":579,"title":649,"description":1708,"default":87},"Limits the number of tool memory items returned, controlling the count of recalled tool memories. Effective only when include_tool_memory=true. Default is 6 if not provided, max is 25.",{"type":363,"title":652,"description":1710},"Whether to enable Skill recall. When enabled, the system will intelligently recall memories related to tools based on the query content. Default is disabled if not provided.",{"type":370,"title":652,"description":1712},"Limits the number of returned Skills, controlling the count of recalled skills. Effective only when `include_skill=true`. Default is 6 if not provided, max is 25.",{"type":370,"minimum":371,"maximum":372,"title":373,"description":1496,"default":375},{"type":332,"required":1715,"properties":1716,"title":864},[431,432],{"code":1717,"data":1719,"message":1720},{"type":358,"format":579,"title":435,"description":1718,"example":371},"API status code. See \u003Ca href=\"\u002Fapi_docs\u002Fhelp\u002Ferror_codes\" class=\"text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&amp;&gt;code]:border-dashed hover:[&amp;&gt;code]:border-primary hover:[&amp;&gt;code]:text-primary transition-colors [&amp;&gt;code]:transition-colors\">Error Code\u003C\u002Fa> for details.",{"$ref":862},{"type":339,"title":440,"description":1669},{"type":332,"title":832,"properties":1722,"description":1737},{"memory_detail_list":1723,"preference_detail_list":1726,"tool_memory_detail_list":1729,"preference_note":1732,"skill_detail_list":1734},{"type":353,"title":835,"description":1724,"items":1725},"List of memory fragment details returned. Each item includes:",{"$ref":838},{"type":353,"title":840,"description":1727,"items":1728},"List of preference memory details returned. Each item includes:",{"$ref":843},{"type":353,"title":845,"description":1730,"items":1731},"List of tool memory fragment details returned.",{"$ref":848},{"type":339,"title":850,"description":1733},"Preference memory usage note when it is retrieved.",{"type":353,"title":853,"description":1735,"items":1736},"List of skill details returned.",{"$ref":856},"Object containing the query result.",{"type":332,"properties":1739,"title":695,"description":1724},{"id":1740,"memory_key":1742,"memory_value":1744,"memory_type":1746,"create_time":1749,"conversation_id":1751,"status":1753,"confidence":1756,"tags":1758,"update_time":1761,"relativity":1763},{"type":339,"title":661,"description":1741},"Unique identifier of fact memory, used internally by the system.",{"type":339,"title":664,"description":1743},"Title or keyword summarizing fact memory.",{"type":339,"title":667,"description":1745},"Detailed content of fact memory.",{"type":339,"enum":1747,"title":674,"description":1748,"example":672},[671,672,673],"WorkingMemory: short-term working memory, temporarily stored.\u003Cbr>LongTermMemory: long-term memory, important information or facts stored persistently.\u003Cbr>UserMemory: user-specific memory, personalized information related to a specific user.",{"type":339,"title":605,"description":1750},"Creation time of fact memory, usually in ISO 8601 format.",{"type":339,"title":343,"description":1752},"Unique identifier of the conversation associated with fact memory.",{"type":339,"enum":1754,"title":568,"description":1755,"example":682},[682],"Fact memory status. All retrieved fact memories are currently activated.\u003Cbr>activated: active fact memory, available for retrieval and use.",{"type":370,"minimum":371,"maximum":372,"title":685,"description":1757,"example":141},"Confidence score of fact memory, ranging from 0 to 1. Values closer to 1 indicate higher reliability. \u003Cbr>The score may gradually decay over time or with repeated model reasoning to reflect uncertainty.",{"type":353,"title":409,"description":1759,"items":1760},"List of tags associated with fact memory for categorization or retrieval. Each element is a string, e.g., [\"person\", \"event\", \"work\"].",{"type":339},{"type":339,"title":608,"description":1762},"Last modification or update time of fact memory, usually in ISO 8601 format.",{"type":370,"minimum":371,"maximum":372,"title":373,"description":1764,"example":694},"Relevance score of fact memory to the query, ranging from 0 to 1. Higher values indicate stronger relevance.",{"type":332,"properties":1766,"title":723},{"id":1767,"preference":1769,"preference_type":1771,"reasoning":1774,"create_time":1776,"conversation_id":1778,"status":1780,"update_time":1783,"relativity":1785},{"type":339,"title":661,"description":1768},"Unique identifier of preference memory, used internally by the system.",{"type":339,"title":707,"description":1770},"Detailed content of preference memory.",{"type":339,"enum":1772,"title":704,"description":1773,"example":702},[702,703],"explicit_preference: Explicit preference memory.\u003Cbr>implicit_preference: Implicit preference memory.",{"type":339,"title":710,"description":1775},"The reason why preference memory was extracted.",{"type":339,"title":605,"description":1777},"Creation time of preference memory, usually in ISO 8601 format.",{"type":339,"title":343,"description":1779},"Unique identifier of the conversation associated with preference memory.",{"type":339,"enum":1781,"title":568,"description":1782,"example":682},[682],"Preference memory status. All retrieved preference memories are currently activated.\u003Cbr>activated: active preference memory, available for retrieval and use.",{"type":339,"title":608,"description":1784},"Last modification or update time of preference memory, usually in ISO 8601 format.",{"type":370,"minimum":371,"maximum":372,"title":373,"description":1786,"example":694},"Relevance score of preference memory to the query, ranging from 0 to 1. Higher values indicate stronger relevance.",{"type":332,"properties":1788,"title":738},{"used_tool":1789,"error_type":1791,"success_rate":1793,"tool_experience":1795},{"type":339,"title":727,"description":1790},"Name of the tool used.",{"type":339,"title":730,"description":1792},"Error description when call fails.",{"type":370,"title":733,"description":1794},"Success rate of this tool trajectory.",{"type":339,"title":736,"description":1796},"Experience with this tool in the current trajectory.",{"type":332,"properties":1798,"title":771},{"id":1799,"tool_type":1801,"tool_value":1804,"tool_used_status":1806,"create_time":1809,"conversation_id":1811,"status":1813,"update_time":1816,"relativity":1818,"experience":1820},{"type":339,"title":661,"description":1800},"Unique identifier of the tool memory fragment.",{"type":339,"title":744,"description":1802,"enum":1803},"Tool memory type. ToolTrajectoryMemory: tool trajectory memory; ToolSchema: tool info memory.",[747,748],{"type":339,"title":750,"description":1805},"Specific content of the tool memory.",{"type":353,"title":753,"description":1807,"items":1808},"List of tool trajectory memories, each record contains tool used and experience info.",{"$ref":756},{"type":339,"title":605,"description":1810},"Tool memory creation time (ISO 8601 format).",{"type":339,"title":343,"description":1812},"Unique identifier of the conversation associated with the tool memory.",{"type":339,"title":568,"description":1814,"enum":1815},"Tool memory status, currently activated.",[682],{"type":339,"title":608,"description":1817},"Last update time of the tool memory (ISO 8601 format).",{"type":370,"title":373,"description":1819},"Relevance score of the tool memory to the query content.",{"type":339,"title":769,"description":1821},"Procedural experience of the entire trajectory, serving as overall guidance for task completion.",{"type":332,"properties":1823},{"name":1824,"description":1826,"procedure":1828,"experience":1830,"preference":1833,"examples":1836,"script":1839,"others":1841},{"type":339,"title":775,"description":1825},"The name of the Skill, used for display and identification of the capability.",{"type":339,"title":778,"description":1827},"The description of the Skill.",{"type":339,"title":781,"description":1829},"Recommended procedures or operational steps to complete the task.",{"type":353,"title":769,"items":1831,"description":1832},{"type":339},"Experience accumulated from historical tasks, including best practices, common pitfalls, and avoidance suggestions.",{"type":353,"title":707,"items":1834,"description":1835},{"type":339},"User preference settings for this type of task, such as style, constraints, or priorities.",{"type":353,"title":790,"items":1837,"description":1838},{"type":339},"Typical usage examples of the Skill, helping the Agent understand input\u002Foutput formats and usage boundaries.",{"type":332,"title":794,"description":1840},"Reusable code scripts or logic implementations used to complete the Skill.",{"type":332,"title":797,"description":1842},"Other supplementary information.",{"type":332,"properties":1844,"title":830},{"id":1845,"skill_value":1847,"skill_url":1850,"skill_type":1852,"create_time":1854,"conversation_id":1856,"status":1858,"confidence":1861,"tags":1863,"update_time":1866,"relativity":1868},{"type":339,"title":661,"description":1846},"The unique identifier of the Skill, used internally by the system to distinguish different memory entries.",{"type":332,"title":804,"description":1848,"items":1849},"The specific content of the Skill.",{"$ref":807},{"type":339,"title":809,"description":1851},"The download link for the Skill, downloaded as reusable skill implementations or configuration files.",{"type":339,"title":812,"description":1853},"The type of the Skill.",{"type":339,"title":605,"description":1855},"The creation time of the Skill content, usually in ISO 8601 format.",{"type":339,"title":343,"description":1857},"The unique identifier of the conversation associated with the Skill.",{"type":339,"title":568,"description":1859,"enum":1860},"The status of the Skill. Currently, all retrieved Skills are 'activated'. activated: Active status, the Skill is currently retrievable and usable.",[682],{"type":370,"title":685,"description":1862},"The confidence score of the Skill, ranging from 0 to 1. A value closer to 1 indicates the Skill is more accurate and reliable.\nThe confidence score gradually decays as the model infers this Skill more times, reflecting the uncertainty that may arise over time or usage frequency.",{"type":353,"items":1864,"description":1865},{"type":339},"A list of tags associated with the Skill, used for classification, retrieval, or topic marking. Each element in the array is a string, e.g., [\"Person\", \"Event\", \"Work\"].",{"type":339,"title":608,"description":1867},"The time when the Skill was last modified or updated, usually in ISO 8601 format.",{"type":339,"title":373,"description":1869},"The relevance score between the query content and the Skill, ranging from 0 to 1. A value closer to 1 indicates higher relevance.",{"type":332,"required":1871,"properties":1872,"title":884},[334],{"user_id":1873,"page":1875,"size":1877,"filter":1879,"include_preference":1880,"include_tool_memory":1882},{"type":339,"title":340,"description":1874},"Unique identifier of the user whose memories are being retrieved.",{"type":358,"title":871,"description":1876,"default":372},"Page number for pagination when many results are returned.",{"type":358,"title":874,"description":1878,"default":876},"Number of entries returned per memory category on the current page, up to 50.",{"type":332,"title":349,"description":1485,"example":351},{"type":363,"title":364,"description":1881,"default":45},"Whether preference memories should be included.",{"type":363,"title":646,"description":1883,"default":45},"Whether tool memories should be included.",{"type":332,"title":886,"properties":1885},{"memory_detail_list":1886,"preference_detail_list":1917,"tool_memory_detail_list":1939,"total":1958,"size":1960,"current":1962,"pages":1964},{"type":353,"title":835,"description":1887,"items":1888},"Returned factual memories.",{"type":332,"title":891,"properties":1889},{"id":1890,"memory_key":1892,"memory_value":1894,"memory_type":1896,"create_time":1899,"conversation_id":1901,"status":1903,"confidence":1905,"tags":1907,"update_time":1910,"sources":1912,"info":1915},{"type":339,"description":1891},"Unique identifier of a factual memory entry.",{"type":339,"description":1893},"Title or keyword summarizing the factual memory.",{"type":339,"description":1895},"Content of the factual memory.",{"type":339,"enum":1897,"description":1898},[671,672,673],"Type of factual memory.",{"type":339,"description":1900},"Creation time in ISO 8601 format.",{"type":339,"description":1902},"Conversation identifier linked to this memory.",{"type":339,"description":1904},"Current status, only activated is returned.",{"type":370,"description":1906},"Confidence score between 0 and 1; higher means more reliable.",{"type":353,"items":1908,"description":1909},{"type":339},"Tag list for classification or retrieval.",{"type":339,"description":1911},"Last update time in ISO 8601 format.",{"type":353,"items":1913,"description":1914},{"type":332,"additionalProperties":45},"Source message objects associated with the memory.",{"type":332,"additionalProperties":45,"description":1916},"Custom metadata provided when adding the message.",{"type":353,"title":840,"description":1918,"items":1919},"Returned preference memories.",{"type":332,"properties":1920},{"id":1921,"preference_type":1923,"preference":1926,"reasoning":1928,"create_time":1930,"conversation_id":1931,"status":1933,"update_time":1934,"sources":1935,"info":1938},{"type":339,"description":1922},"Unique identifier of the preference memory.",{"type":339,"enum":1924,"description":1925},[702,703],"Preference memory type.",{"type":339,"description":1927},"Description of the preference.",{"type":339,"description":1929},"Reasoning for extracting or deriving the preference.",{"type":339,"description":1900},{"type":339,"description":1932},"Conversation identifier linked to this preference.",{"type":339,"description":1904},{"type":339,"description":1911},{"type":353,"items":1936,"description":1937},{"type":332,"additionalProperties":45},"Source messages associated with the preference.",{"type":332,"additionalProperties":45,"description":1916},{"type":353,"title":845,"description":1730,"items":1940},{"type":332,"title":946,"properties":1941},{"id":1942,"tool_type":1943,"tool_value":1945,"tool_used_status":1946,"create_time":1948,"conversation_id":1949,"status":1950,"update_time":1952,"experience":1953,"sources":1954,"info":1957},{"type":339,"title":661,"description":1800},{"type":339,"title":744,"description":1802,"enum":1944},[747,748],{"type":339,"title":750,"description":1805},{"type":353,"title":753,"description":1807,"items":1947},{"$ref":756},{"type":339,"title":605,"description":1810},{"type":339,"title":343,"description":1812},{"type":339,"title":568,"description":1814,"enum":1951},[682],{"type":339,"title":608,"description":1817},{"type":339,"title":769,"description":1821},{"type":353,"items":1955,"description":1956},{"type":332,"additionalProperties":45},"List of original message content associated with the tool memory.",{"type":332,"additionalProperties":45,"description":1916},{"type":358,"description":1959},"Maximum count across memory types, used to check if another page exists.",{"type":358,"description":1961},"Number of entries per memory type on the current page.",{"type":358,"description":1963},"Index of the current page.",{"type":358,"description":1965},"Total number of pages.",{"type":332,"required":1967,"title":974,"properties":1968},[431,432],{"code":1969,"data":1971,"message":1972},{"type":370,"title":435,"description":1970},"API status code; refer to the error-code list for details.",{"$ref":979},{"type":339,"title":440,"description":1973},"API message.",{"type":332,"properties":1975,"title":989},{"memory_ids":1976,"user_id":1979},{"type":353,"items":1977,"title":985,"description":1978},{"type":339},"IDs of the memories to be deleted, obtained from the `id` field returned by the `search\u002Fmemory` or `get\u002Fmemory` API.",{"type":339,"title":340,"description":1980},"Unique identifier of the user whose memories are being deleted.",{"type":332,"properties":1982,"title":1001},{"code":1983,"data":1984,"message":1989},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":1985,"description":1988},{"success":1986},{"type":363,"title":562,"description":1987,"example":45},"Whether deletion was successful. true for success, false for failure.","Returned deletion information",{"type":339,"title":440,"description":1990},"API response message",{"type":332,"required":1992,"properties":1993,"title":1025},[334,335,1004],{"user_id":1994,"conversation_id":1996,"feedback_content":1998,"agent_id":2000,"app_id":2002,"feedback_time":2004,"allow_public":2006,"allow_knowledgebase_ids":2008},{"type":339,"title":340,"description":1995},"Unique identifier of the user associated with the feedback content.",{"type":339,"title":343,"description":1997},"Unique identifier of the conversation associated with the feedback content.",{"type":339,"title":1011,"description":1999},"Feedback content text.",{"type":339,"title":405,"description":2001},"Unique identifier of the Agent associated with the feedback content, primarily used to query exclusive memories between a user and that Agent during retrieval.",{"type":339,"title":402,"description":2003},"Unique identifier of the App associated with the feedback content, primarily used to query exclusive memories of a user under that App during retrieval.",{"type":339,"title":1018,"description":2005},"Time when the feedback occurred, can be a structured timestamp or natural language time description. Providing this parameter allows memory to include time information.",{"type":363,"title":416,"description":2007,"default":122},"Whether memories generated from the feedback content are allowed to be written to the public memory store. When enabled, generated memories can be retrieved by other users in the project.",{"type":353,"items":2009,"title":420,"description":2010},{"type":339},"List of knowledgebases where memories generated from the feedback content are allowed to be written.",{"type":332,"required":2012,"properties":2013,"title":1040},[431,432],{"code":2014,"data":2015,"message":2022},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2016},{"success":2017,"status":2019,"task_id":2021},{"type":363,"title":562,"description":2018},"Whether addition was successful. true for success, false for failure.",{"type":339,"title":568,"description":2020},"Task status: running, completed",{"type":339,"title":565,"description":565},{"type":339,"title":440,"description":1990},{"type":332,"required":2024,"properties":2025,"title":1047},[1043],{"task_id":2026},{"type":339,"title":565,"description":2027},"Async Task ID",{"type":332,"required":2029,"properties":2030,"title":1057},[431,432],{"code":2031,"data":2032,"message":2036},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2033},{"status":2034},{"type":339,"title":568,"enum":2035,"description":1651},[570,571,572],{"type":339,"title":440,"description":1990},{"type":332,"required":2038,"properties":2039,"title":1068},[1060],{"knowledgebase_name":2040,"knowledgebase_description":2041},{"type":339,"title":1063,"description":1063},{"type":339,"title":1066,"description":2042},"Description information",{"type":332,"required":2044,"properties":2045,"title":1079},[431,432],{"code":2046,"data":2047,"message":2051},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2048},{"id":2049},{"type":339,"title":1076,"description":2050},"Knowledgebase ID returned after successful creation",{"type":339,"title":440,"description":1990},{"type":332,"required":2053,"properties":2054,"title":1087},[1082],{"knowledgebase_id":2055},{"type":339,"title":1085,"description":2056},"Knowledgebase ID to be deleted",{"type":332,"required":2058,"properties":2059,"title":1097},[431,432],{"code":2060,"data":2061,"message":2065},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2062},{"success":2063},{"type":363,"title":562,"description":2064},"Whether removal was successful. true for success, false for failure.",{"type":339,"title":440,"description":1990},{"type":332,"required":2067,"properties":2068,"title":1112},[1082,483],{"knowledgebase_id":2069,"file":2071},{"type":339,"title":1085,"description":2070},"Target Knowledgebase ID",{"type":353,"title":1104,"description":2072,"items":2073},"List of documents to upload",{"type":332,"properties":2074},{"name":2075,"content":2077},{"type":339,"title":775,"description":2076},"File name.",{"type":339,"title":603,"description":2078},"The file content input supports URL or Base64 encoding, and the supported document types include PDF, DOCX, DOC, TXT, JSON, MD and XML.Supports uploading up to 20 documents at a time; each document must be no larger than 100 MB, 500 pages, or 20,000 tokens.",{"type":332,"required":2080,"properties":2081,"title":1131},[431,432],{"code":2082,"data":2083,"message":2094},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2084},{"id":2085,"name":2087,"sizeMB":2089,"status":2091},{"type":339,"title":661,"description":2086},"Document ID",{"type":339,"title":775,"description":2088},"Document Name",{"type":358,"title":1124,"description":2090},"Document Size",{"type":339,"title":568,"description":2092,"enum":2093},"Document processing status",[570,571,572],{"type":339,"title":440,"description":1990},{"type":332,"required":2096,"properties":2097,"title":1140},[1134],{"file_ids":2098},{"type":353,"items":2099,"title":1138,"description":2100},{"type":339},"List of file IDs",{"type":332,"required":2102,"properties":2103,"title":1157},[431,432],{"code":2104,"data":2105,"message":2115},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2106},{"file_detail_list":2107},{"type":353,"items":2108,"title":1155},{"type":332,"properties":2109},{"id":2110,"name":2111,"size":2112,"status":2113},{"type":339,"title":661,"description":2086},{"type":339,"title":775,"description":2088},{"type":339,"title":874,"description":2090},{"type":339,"title":568,"description":2092,"enum":2114},[570,571,572],{"type":339,"title":440,"description":1990},{"type":332,"required":2117,"properties":2118,"title":1164},[1134],{"file_ids":2119},{"type":353,"items":2120,"title":1138,"description":2121},{"type":339},"List of document IDs to delete",{"type":332,"required":2123,"properties":2124,"title":1173},[431,432],{"code":2125,"data":2126,"message":2129},{"type":358,"title":435,"description":1718},{"type":332,"title":994,"properties":2127},{"success":2128},{"type":363,"title":562,"description":1987},{"type":339,"title":440,"description":1990},{"type":332,"title":1175,"properties":2131},{"memory_key":2132,"memory_value":2135,"memory_type":2138,"tags":2140},{"type":339,"title":664,"description":2133,"example":2134},"High-level topic or title summarizing the extracted factual memory.","User profile basics",{"type":339,"title":667,"description":2136,"example":2137},"Detailed content of the extracted factual memory.","User Zhang San, 28, backend developer in Hangzhou, enjoys badminton.",{"type":339,"title":674,"description":2139,"example":673},"Memory type classifier.\u003Cbr>Examples: UserMemory, LongTermMemory.",{"type":353,"items":2141,"title":409,"description":2142,"example":2143},{"type":339},"Tags for categorizing the memory content.",[2144,2145,2146],"person","job","hobby",{"type":332,"title":1193,"properties":2148},{"preference":2149,"reasoning":2152,"preference_type":2155},{"type":339,"title":707,"description":2150,"example":2151},"Concrete preference text extracted from the dialogue.","The user asked for replies to stay concise.",{"type":339,"title":710,"description":2153,"example":2154},"How this preference was inferred from the conversation.","The user stated this preference explicitly in the chat.",{"type":339,"title":704,"description":2156,"enum":2157,"example":702},"explicit_preference: clearly stated by the user; implicit_preference: inferred from behavior or context.",[702,703],{"type":332,"title":1205,"properties":2159},{"success":2160,"memory_detail_list":2162,"preference_detail_list":2165},{"type":363,"title":562,"description":2161},"Whether extraction succeeded.",{"type":353,"title":835,"description":2163,"items":2164},"Factual memories. Returned when the request includes memory in extraction_types, or when extraction_types is omitted.",{"$ref":1212},{"type":353,"title":840,"description":2166,"items":2167},"Preference memories. Returned when the request includes preference in extraction_types, or when extraction_types is omitted; may mix explicit and implicit preferences.",{"$ref":1216},{"type":332,"required":2169,"title":1219,"properties":2170},[461,462],{"role":2171,"content":2174},{"type":339,"title":471,"enum":2172,"description":2173},[55,58,469],"Creator role of the message.",{"type":339,"title":603,"description":2175},"Message body text.",{"type":332,"required":2177,"title":1226,"properties":2178},[523],{"messages":2179,"extraction_types":2182},{"type":353,"title":530,"description":2180,"items":2181},"Array of message objects from which to extract memories. The combined Token count of all messages must not exceed 8k.",{"$ref":1231},{"type":353,"title":1233,"description":2183,"items":2184},"\u003Cp>Limits which memory types to extract; omit to extract all supported types.\u003C\u002Fp>\u003Cul>\u003Cli>\u003Ccode>memory\u003C\u002Fcode>: factual memories—user-related factual information extracted from the dialogue.\u003C\u002Fli>\u003Cli>\u003Ccode>preference\u003C\u002Fcode>: preference memories—user preferences from the dialogue, including explicit preferences (clearly stated) and implicit preferences (inferred from behavior).\u003C\u002Fli>\u003C\u002Ful>",{"type":339,"enum":2185},[219,220],{"type":332,"required":2187,"title":1239,"properties":2188},[431,432],{"code":2189,"data":2190,"message":2191},{"type":358,"format":579,"title":435,"description":1718,"example":371},{"$ref":1243},{"type":339,"title":440,"description":1669,"example":584},"en\u002Fapi_docs\u002Fapi","_XwQiA_EgOVczRN1UfNUlqUfF24JVubQZDQhgcnLEHk",[2195,2200],{"title":185,"path":2196,"stem":2197,"icon":2198,"framework":6,"module":6,"class":2199,"target":-1,"active":122,"defaultOpen":122,"children":-1,"description":-1},"\u002Fapi_docs\u002Fmessage\u002Fadd_feedback","api_docs\u002Fmessage\u002Fadd_feedback","i-ri-feedback-line",[],{"title":77,"path":2201,"stem":2202,"icon":2203,"framework":6,"module":6,"class":2204,"target":-1,"active":122,"defaultOpen":122,"children":-1,"description":-1},"\u002Fapi_docs\u002Fmessage\u002Fget_message","api_docs\u002Fmessage\u002Fget_message","i-ri-file-list-line",[],{"id":2206,"title":2207,"avatar":6,"banner":6,"body":2208,"category":6,"desc":6,"description":11,"extension":14,"links":6,"meta":2895,"navigation":6,"path":2896,"seo":2897,"stem":2898,"__hash__":2899},"docs\u002Fen\u002Fapi_docs\u002Fsnippets\u002Fextract_memory.md","ExtractMemory",{"type":8,"value":2209,"toc":2893},[2210,2889],[2211,2212,2213,2776],"code-group",{},[2214,2215,2220],"pre",{"className":2216,"code":2217,"filename":2218,"language":2219,"meta":11,"style":11},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\nimport requests\nimport json\n\n# Replace with your 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    \"messages\": [\n        {\"role\": \"user\", \"content\": \"I’ve booked a summer trip to Guangzhou. What chain hotels can you recommend for accommodation?\"},\n        {\"role\": \"assistant\", \"content\": \"You can consider options like 7 Days Inn, All Seasons, Hilton, and others.\"},\n        {\"role\": \"user\", \"content\": \"I’ll go with 7 Days Inn.\"},\n        {\"role\": \"assistant\", \"content\": \"Alright—ask me anytime if you have more questions.\"}\n    ],\n    \"extraction_types\": [\"memory\", \"preference\"]\n}\nheaders = {\n    \"Content-Type\": \"application\u002Fjson\",\n    \"Authorization\": f\"Token {os.environ['MEMOS_API_KEY']}\"\n}\nurl = f\"{os.environ['MEMOS_BASE_URL']}\u002Fextract\u002Fmemory\"\n\nres = requests.post(url=url, headers=headers, data=json.dumps(data))\n\nprint(f\"result: {res.json()}\")\n","Python (HTTP)","python",[431,2221,2222,2234,2241,2249,2255,2262,2302,2330,2335,2346,2361,2402,2439,2476,2514,2520,2552,2557,2567,2589,2633,2638,2673,2678,2738,2743],{"__ignoreMap":11},[2223,2224,2226,2230],"span",{"class":2225,"line":372},"line",[2223,2227,2229],{"class":2228},"s7zQu","import",[2223,2231,2233],{"class":2232},"sTEyZ"," os\n",[2223,2235,2236,2238],{"class":2225,"line":12},[2223,2237,2229],{"class":2228},[2223,2239,2240],{"class":2232}," requests\n",[2223,2242,2244,2246],{"class":2225,"line":2243},3,[2223,2245,2229],{"class":2228},[2223,2247,2248],{"class":2232}," json\n",[2223,2250,2252],{"class":2225,"line":2251},4,[2223,2253,2254],{"emptyLinePlaceholder":45},"\n",[2223,2256,2258],{"class":2225,"line":2257},5,[2223,2259,2261],{"class":2260},"sHwdD","# Replace with your API Key\n",[2223,2263,2264,2267,2271,2275,2278,2281,2285,2287,2290,2293,2296,2299],{"class":2225,"line":87},[2223,2265,2266],{"class":2232},"os",[2223,2268,2270],{"class":2269},"sMK4o",".",[2223,2272,2274],{"class":2273},"swJcz","environ",[2223,2276,2277],{"class":2269},"[",[2223,2279,2280],{"class":2269},"\"",[2223,2282,2284],{"class":2283},"sfazB","MEMOS_API_KEY",[2223,2286,2280],{"class":2269},[2223,2288,2289],{"class":2269},"]",[2223,2291,2292],{"class":2269}," =",[2223,2294,2295],{"class":2269}," \"",[2223,2297,2298],{"class":2283},"YOUR_API_KEY",[2223,2300,2301],{"class":2269},"\"\n",[2223,2303,2305,2307,2309,2311,2313,2315,2318,2320,2322,2324,2326,2328],{"class":2225,"line":2304},7,[2223,2306,2266],{"class":2232},[2223,2308,2270],{"class":2269},[2223,2310,2274],{"class":2273},[2223,2312,2277],{"class":2269},[2223,2314,2280],{"class":2269},[2223,2316,2317],{"class":2283},"MEMOS_BASE_URL",[2223,2319,2280],{"class":2269},[2223,2321,2289],{"class":2269},[2223,2323,2292],{"class":2269},[2223,2325,2295],{"class":2269},[2223,2327,33],{"class":2283},[2223,2329,2301],{"class":2269},[2223,2331,2333],{"class":2225,"line":2332},8,[2223,2334,2254],{"emptyLinePlaceholder":45},[2223,2336,2337,2340,2343],{"class":2225,"line":361},[2223,2338,2339],{"class":2232},"data ",[2223,2341,2342],{"class":2269},"=",[2223,2344,2345],{"class":2269}," {\n",[2223,2347,2348,2351,2353,2355,2358],{"class":2225,"line":876},[2223,2349,2350],{"class":2269},"    \"",[2223,2352,523],{"class":2283},[2223,2354,2280],{"class":2269},[2223,2356,2357],{"class":2269},":",[2223,2359,2360],{"class":2269}," [\n",[2223,2362,2364,2367,2369,2371,2373,2375,2377,2379,2381,2384,2386,2388,2390,2392,2394,2397,2399],{"class":2225,"line":2363},11,[2223,2365,2366],{"class":2269},"        {",[2223,2368,2280],{"class":2269},[2223,2370,461],{"class":2283},[2223,2372,2280],{"class":2269},[2223,2374,2357],{"class":2269},[2223,2376,2295],{"class":2269},[2223,2378,55],{"class":2283},[2223,2380,2280],{"class":2269},[2223,2382,2383],{"class":2269},",",[2223,2385,2295],{"class":2269},[2223,2387,462],{"class":2283},[2223,2389,2280],{"class":2269},[2223,2391,2357],{"class":2269},[2223,2393,2295],{"class":2269},[2223,2395,2396],{"class":2283},"I’ve booked a summer trip to Guangzhou. What chain hotels can you recommend for accommodation?",[2223,2398,2280],{"class":2269},[2223,2400,2401],{"class":2269},"},\n",[2223,2403,2405,2407,2409,2411,2413,2415,2417,2419,2421,2423,2425,2427,2429,2431,2433,2435,2437],{"class":2225,"line":2404},12,[2223,2406,2366],{"class":2269},[2223,2408,2280],{"class":2269},[2223,2410,461],{"class":2283},[2223,2412,2280],{"class":2269},[2223,2414,2357],{"class":2269},[2223,2416,2295],{"class":2269},[2223,2418,58],{"class":2283},[2223,2420,2280],{"class":2269},[2223,2422,2383],{"class":2269},[2223,2424,2295],{"class":2269},[2223,2426,462],{"class":2283},[2223,2428,2280],{"class":2269},[2223,2430,2357],{"class":2269},[2223,2432,2295],{"class":2269},[2223,2434,1382],{"class":2283},[2223,2436,2280],{"class":2269},[2223,2438,2401],{"class":2269},[2223,2440,2442,2444,2446,2448,2450,2452,2454,2456,2458,2460,2462,2464,2466,2468,2470,2472,2474],{"class":2225,"line":2441},13,[2223,2443,2366],{"class":2269},[2223,2445,2280],{"class":2269},[2223,2447,461],{"class":2283},[2223,2449,2280],{"class":2269},[2223,2451,2357],{"class":2269},[2223,2453,2295],{"class":2269},[2223,2455,55],{"class":2283},[2223,2457,2280],{"class":2269},[2223,2459,2383],{"class":2269},[2223,2461,2295],{"class":2269},[2223,2463,462],{"class":2283},[2223,2465,2280],{"class":2269},[2223,2467,2357],{"class":2269},[2223,2469,2295],{"class":2269},[2223,2471,1384],{"class":2283},[2223,2473,2280],{"class":2269},[2223,2475,2401],{"class":2269},[2223,2477,2479,2481,2483,2485,2487,2489,2491,2493,2495,2497,2499,2501,2503,2505,2507,2509,2511],{"class":2225,"line":2478},14,[2223,2480,2366],{"class":2269},[2223,2482,2280],{"class":2269},[2223,2484,461],{"class":2283},[2223,2486,2280],{"class":2269},[2223,2488,2357],{"class":2269},[2223,2490,2295],{"class":2269},[2223,2492,58],{"class":2283},[2223,2494,2280],{"class":2269},[2223,2496,2383],{"class":2269},[2223,2498,2295],{"class":2269},[2223,2500,462],{"class":2283},[2223,2502,2280],{"class":2269},[2223,2504,2357],{"class":2269},[2223,2506,2295],{"class":2269},[2223,2508,1386],{"class":2283},[2223,2510,2280],{"class":2269},[2223,2512,2513],{"class":2269},"}\n",[2223,2515,2517],{"class":2225,"line":2516},15,[2223,2518,2519],{"class":2269},"    ],\n",[2223,2521,2523,2525,2528,2530,2532,2535,2537,2539,2541,2543,2545,2547,2549],{"class":2225,"line":2522},16,[2223,2524,2350],{"class":2269},[2223,2526,2527],{"class":2283},"extraction_types",[2223,2529,2280],{"class":2269},[2223,2531,2357],{"class":2269},[2223,2533,2534],{"class":2269}," [",[2223,2536,2280],{"class":2269},[2223,2538,219],{"class":2283},[2223,2540,2280],{"class":2269},[2223,2542,2383],{"class":2269},[2223,2544,2295],{"class":2269},[2223,2546,220],{"class":2283},[2223,2548,2280],{"class":2269},[2223,2550,2551],{"class":2269},"]\n",[2223,2553,2555],{"class":2225,"line":2554},17,[2223,2556,2513],{"class":2269},[2223,2558,2560,2563,2565],{"class":2225,"line":2559},18,[2223,2561,2562],{"class":2232},"headers ",[2223,2564,2342],{"class":2269},[2223,2566,2345],{"class":2269},[2223,2568,2570,2572,2575,2577,2579,2581,2584,2586],{"class":2225,"line":2569},19,[2223,2571,2350],{"class":2269},[2223,2573,2574],{"class":2283},"Content-Type",[2223,2576,2280],{"class":2269},[2223,2578,2357],{"class":2269},[2223,2580,2295],{"class":2269},[2223,2582,2583],{"class":2283},"application\u002Fjson",[2223,2585,2280],{"class":2269},[2223,2587,2588],{"class":2269},",\n",[2223,2590,2592,2594,2596,2598,2600,2604,2607,2611,2613,2615,2617,2619,2622,2624,2626,2628,2631],{"class":2225,"line":2591},20,[2223,2593,2350],{"class":2269},[2223,2595,327],{"class":2283},[2223,2597,2280],{"class":2269},[2223,2599,2357],{"class":2269},[2223,2601,2603],{"class":2602},"spNyl"," f",[2223,2605,2606],{"class":2283},"\"Token ",[2223,2608,2610],{"class":2609},"sbssI","{",[2223,2612,2266],{"class":2232},[2223,2614,2270],{"class":2269},[2223,2616,2274],{"class":2273},[2223,2618,2277],{"class":2269},[2223,2620,2621],{"class":2269},"'",[2223,2623,2284],{"class":2283},[2223,2625,2621],{"class":2269},[2223,2627,2289],{"class":2269},[2223,2629,2630],{"class":2609},"}",[2223,2632,2301],{"class":2283},[2223,2634,2636],{"class":2225,"line":2635},21,[2223,2637,2513],{"class":2269},[2223,2639,2641,2644,2646,2648,2650,2652,2654,2656,2658,2660,2662,2664,2666,2668,2670],{"class":2225,"line":2640},22,[2223,2642,2643],{"class":2232},"url ",[2223,2645,2342],{"class":2269},[2223,2647,2603],{"class":2602},[2223,2649,2280],{"class":2283},[2223,2651,2610],{"class":2609},[2223,2653,2266],{"class":2232},[2223,2655,2270],{"class":2269},[2223,2657,2274],{"class":2273},[2223,2659,2277],{"class":2269},[2223,2661,2621],{"class":2269},[2223,2663,2317],{"class":2283},[2223,2665,2621],{"class":2269},[2223,2667,2289],{"class":2269},[2223,2669,2630],{"class":2609},[2223,2671,2672],{"class":2283},"\u002Fextract\u002Fmemory\"\n",[2223,2674,2676],{"class":2225,"line":2675},23,[2223,2677,2254],{"emptyLinePlaceholder":45},[2223,2679,2681,2684,2686,2689,2691,2695,2698,2702,2704,2706,2708,2711,2713,2716,2718,2721,2723,2725,2727,2730,2732,2735],{"class":2225,"line":2680},24,[2223,2682,2683],{"class":2232},"res ",[2223,2685,2342],{"class":2269},[2223,2687,2688],{"class":2232}," requests",[2223,2690,2270],{"class":2269},[2223,2692,2694],{"class":2693},"s2Zo4","post",[2223,2696,2697],{"class":2269},"(",[2223,2699,2701],{"class":2700},"sHdIc","url",[2223,2703,2342],{"class":2269},[2223,2705,2701],{"class":2693},[2223,2707,2383],{"class":2269},[2223,2709,2710],{"class":2700}," headers",[2223,2712,2342],{"class":2269},[2223,2714,2715],{"class":2693},"headers",[2223,2717,2383],{"class":2269},[2223,2719,2720],{"class":2700}," data",[2223,2722,2342],{"class":2269},[2223,2724,24],{"class":2693},[2223,2726,2270],{"class":2269},[2223,2728,2729],{"class":2693},"dumps",[2223,2731,2697],{"class":2269},[2223,2733,2734],{"class":2693},"data",[2223,2736,2737],{"class":2269},"))\n",[2223,2739,2741],{"class":2225,"line":2740},25,[2223,2742,2254],{"emptyLinePlaceholder":45},[2223,2744,2746,2749,2751,2754,2757,2759,2762,2764,2766,2769,2771,2773],{"class":2225,"line":2745},26,[2223,2747,2748],{"class":2693},"print",[2223,2750,2697],{"class":2269},[2223,2752,2753],{"class":2602},"f",[2223,2755,2756],{"class":2283},"\"result: ",[2223,2758,2610],{"class":2609},[2223,2760,2761],{"class":2693},"res",[2223,2763,2270],{"class":2269},[2223,2765,24],{"class":2693},[2223,2767,2768],{"class":2269},"()",[2223,2770,2630],{"class":2609},[2223,2772,2280],{"class":2283},[2223,2774,2775],{"class":2269},")\n",[2214,2777,2782],{"className":2778,"code":2779,"filename":2780,"language":2781,"meta":11,"style":11},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl --request POST \\\n  --url https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\u002Fextract\u002Fmemory \\\n  --header 'Authorization: Token YOUR_API_KEY' \\\n  --header 'Content-Type: application\u002Fjson' \\\n  --data '{\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"I booked a summer trip to Guangzhou. What chain hotels can you recommend for accommodation?\"},\n      {\"role\": \"assistant\", \"content\": \"You can consider options like 7 Days Inn, All Seasons, Hilton, and others.\"},\n      {\"role\": \"user\", \"content\": \"I will go with 7 Days Inn.\"},\n      {\"role\": \"assistant\", \"content\": \"Alright—ask me anytime if you have more questions.\"}\n    ],\n    \"extraction_types\": [\"memory\", \"preference\"]\n  }'\n","Curl","bash",[431,2783,2784,2799,2809,2824,2837,2847,2852,2857,2862,2867,2872,2876,2881],{"__ignoreMap":11},[2223,2785,2786,2790,2793,2796],{"class":2225,"line":372},[2223,2787,2789],{"class":2788},"sBMFI","curl",[2223,2791,2792],{"class":2283}," --request",[2223,2794,2795],{"class":2283}," POST",[2223,2797,2798],{"class":2232}," \\\n",[2223,2800,2801,2804,2807],{"class":2225,"line":12},[2223,2802,2803],{"class":2283},"  --url",[2223,2805,2806],{"class":2283}," https:\u002F\u002Fmemos.memtensor.cn\u002Fapi\u002Fopenmem\u002Fv1\u002Fextract\u002Fmemory",[2223,2808,2798],{"class":2232},[2223,2810,2811,2814,2817,2820,2822],{"class":2225,"line":2243},[2223,2812,2813],{"class":2283},"  --header",[2223,2815,2816],{"class":2269}," '",[2223,2818,2819],{"class":2283},"Authorization: Token YOUR_API_KEY",[2223,2821,2621],{"class":2269},[2223,2823,2798],{"class":2232},[2223,2825,2826,2828,2830,2833,2835],{"class":2225,"line":2251},[2223,2827,2813],{"class":2283},[2223,2829,2816],{"class":2269},[2223,2831,2832],{"class":2283},"Content-Type: application\u002Fjson",[2223,2834,2621],{"class":2269},[2223,2836,2798],{"class":2232},[2223,2838,2839,2842,2844],{"class":2225,"line":2257},[2223,2840,2841],{"class":2283},"  --data",[2223,2843,2816],{"class":2269},[2223,2845,2846],{"class":2283},"{\n",[2223,2848,2849],{"class":2225,"line":87},[2223,2850,2851],{"class":2283},"    \"messages\": [\n",[2223,2853,2854],{"class":2225,"line":2304},[2223,2855,2856],{"class":2283},"      {\"role\": \"user\", \"content\": \"I booked a summer trip to Guangzhou. What chain hotels can you recommend for accommodation?\"},\n",[2223,2858,2859],{"class":2225,"line":2332},[2223,2860,2861],{"class":2283},"      {\"role\": \"assistant\", \"content\": \"You can consider options like 7 Days Inn, All Seasons, Hilton, and others.\"},\n",[2223,2863,2864],{"class":2225,"line":361},[2223,2865,2866],{"class":2283},"      {\"role\": \"user\", \"content\": \"I will go with 7 Days Inn.\"},\n",[2223,2868,2869],{"class":2225,"line":876},[2223,2870,2871],{"class":2283},"      {\"role\": \"assistant\", \"content\": \"Alright—ask me anytime if you have more questions.\"}\n",[2223,2873,2874],{"class":2225,"line":2363},[2223,2875,2519],{"class":2283},[2223,2877,2878],{"class":2225,"line":2404},[2223,2879,2880],{"class":2283},"    \"extraction_types\": [\"memory\", \"preference\"]\n",[2223,2882,2883,2886],{"class":2225,"line":2441},[2223,2884,2885],{"class":2283},"  }",[2223,2887,2888],{"class":2269},"'\n",[2890,2891,2892],"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);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":11,"searchDepth":12,"depth":12,"links":2894},[],{},"\u002Fen\u002Fapi_docs\u002Fsnippets\u002Fextract_memory",{"description":11},"en\u002Fapi_docs\u002Fsnippets\u002Fextract_memory","e3Oj3YToMYH7-WoDvqr9GWRVBxsHfvFtYaupjkwOw6k",1775723770831]