-
Notifications
You must be signed in to change notification settings - Fork 215
Description
GET /api/v1/memories content (memory_type="episodic_memory")
`Response:
{'message': 'Memory retrieval successful, retrieved 3 memories',
'result': {'has_more': False,
'memories': [{'created_at': '2026-01-28T08:37:02.179000Z',
'end_time': None,
'episode_id': '6979caae364acd040a764331',
'extend': None,
'group_id': 'test_group_004',
'group_name': '测试群组',
'id': '6979caae364acd040a764331',
'key_events': [],
'location': '',
'memcell_event_id_list': None,
'metadata': {'email': None,
'full_name': None,
'group_id': 'test_group_004',
'limit': None,
'memory_type': 'episodic_memory',
'phone': None,
'source': 'episodic_memory',
'user_id': 'test_user_004'},
'participants': ['assistant_001', 'test_user_004'],
'start_time': '2026-01-29T00:46:47.706814Z',
'subject': None,
'summary': '2026年1月28日星期三08:40 AM '
'UTC,张三与AI助手进行了一次对话。张三首先告知AI助手,他刚刚搬家到了美国洛杉矶的Silver '
'Lake社区,并请AI助手记录这一信息。AI助手确认记录后,询问了新家的环境。张三表示新家环境挺好,但提到对附近餐厅还不熟悉。随后,张三向AI助手告知了一个重要的健康信息:他对花生有严重过敏,并明确要求AI助手在以后推荐菜谱时,必须记得提醒他这一过敏情况。',
'timestamp': None,
'title': '张三在2026年1月28日告知搬家至洛杉矶Silver Lake社区及花生严重过敏信息',
'updated_at': '2026-01-28T08:37:02.179000Z',
'user_id': 'test_user_004'},
{'created_at': '2026-01-28T08:36:30.285000Z',
'end_time': None,
'episode_id': '6979ca8e364acd040a764323',
'extend': None,
'group_id': 'test_group_004',
'group_name': '测试群组',
'id': '6979ca8e364acd040a764323',
'key_events': [],
'location': '',
'memcell_event_id_list': None,
'metadata': {'email': None,
'full_name': None,
'group_id': 'test_group_004',
'limit': None,
'memory_type': 'episodic_memory',
'phone': None,
'source': 'episodic_memory',
'user_id': 'test_user_004'},
'participants': ['test_user_004'],
'start_time': '2026-01-29T00:46:47.706823Z',
'subject': None,
'summary': 'On January 28, 2026 at 08:34 AM UTC, Zhang San shared a '
'piece of personal information. He stated that his marriage '
'anniversary date is October 1st.',
'timestamp': None,
'title': "Zhang San's Personal Information Sharing: Marriage Anniversary "
'Date on October 1st',
'updated_at': '2026-01-28T08:36:30.285000Z',
'user_id': 'test_user_004'},
{'created_at': '2026-01-28T08:35:20.713000Z',
'end_time': None,
'episode_id': '6979ca48364acd040a76430b',
'extend': None,
'group_id': 'test_group_004',
'group_name': '测试群组',
'id': '6979ca48364acd040a76430b',
'key_events': [],
'location': '',
'memcell_event_id_list': None,
'metadata': {'email': None,
'full_name': None,
'group_id': 'test_group_004',
'limit': None,
'memory_type': 'episodic_memory',
'phone': None,
'source': 'episodic_memory',
'user_id': 'test_user_004'},
'participants': ['test_user_004'],
'start_time': '2026-01-29T00:46:47.706828Z',
'subject': None,
'summary': 'On January 28, 2026 at 08:34 AM UTC, Zhang San stated that '
'he is allergic to peaches.',
'timestamp': None,
'title': "Zhang San's Peach Allergy Disclosure on January 28, 2026: "
'Personal Health Information Shared',
'updated_at': '2026-01-28T08:35:20.713000Z',
'user_id': 'test_user_004'}],
'metadata': {'email': None,
'full_name': None,
'group_id': 'all',
'limit': 5,
'memory_type': 'episodic_memory',
'phone': None,
'source': 'episodic_memory',
'user_id': 'test_user_004'},
'total_count': 3},
'status': 'ok'}
===============================================================`
GET /api/v1/memories/search (results are the same for retrieve_method="vector" or "hybrid"):
"memory_types": ["episodic_memory", "event_log", "foresight"],
"include_metadata": True
`
Response:
{'message': 'Memory search successful, retrieved 1 groups',
'result': {'has_more': False,
'importance_scores': [0.0],
'memories': [{'test_group_004': [{'extend': {'_search_source': 'vector',
'parent_id': None,
'parent_type': None},
'group_id': 'test_group_004',
'group_name': None,
'id': '6979ca48364acd040a76430b',
'keywords': None,
'linked_entities': None,
'memcell_event_id_list': ['6979ca30364acd040a764307'],
'memory_type': 'episodic_memory',
'ori_event_id_list': ['6979ca48364acd040a76430b'],
'participants': ['test_user_004'],
'timestamp': '2026-01-28T08:34:23Z',
'type': 'Conversation',
'user_id': 'test_user_004',
'user_name': None,
'vector': None,
'vector_model': None},
{'extend': {'_search_source': 'vector',
'parent_id': None,
'parent_type': None},
'group_id': 'test_group_004',
'group_name': None,
'id': '6979ca8e364acd040a764323',
'keywords': None,
'linked_entities': None,
'memcell_event_id_list': ['6979ca79364acd040a76431b'],
'memory_type': 'episodic_memory',
'ori_event_id_list': ['6979ca8e364acd040a764323'],
'participants': ['test_user_004'],
'timestamp': '2026-01-28T08:34:52Z',
'type': 'Conversation',
'user_id': 'test_user_004',
'user_name': None,
'vector': None,
'vector_model': None},
{'extend': {'_search_source': 'vector',
'parent_id': None,
'parent_type': None},
'group_id': 'test_group_004',
'group_name': None,
'id': '6979caae364acd040a764331',
'keywords': None,
'linked_entities': None,
'memcell_event_id_list': ['6979ca87364acd040a76431f'],
'memory_type': 'episodic_memory',
'ori_event_id_list': ['6979caae364acd040a764331'],
'participants': ['assistant_001', 'test_user_004'],
'timestamp': '2026-01-28T08:40:05Z',
'type': 'Conversation',
'user_id': 'test_user_004',
'user_name': None,
'vector': None,
'vector_model': None}]}],
'metadata': {'email': None,
'full_name': None,
'group_id': None,
'limit': None,
'memory_type': 'episodic_memory',
'phone': None,
'source': 'hybrid',
'user_id': 'test_user_004'},
'original_data': [{'test_group_004': [{'data_type': 'Conversation',
'messages': [{'content': '我对桃子过敏',
'extend': {'createBy': 'test_user_004',
'message_id': 'msg_c8b235c8',
'msgType': '1',
'orgId': '',
'receiverId': '',
'referList': '',
'roomId': 'test_group_004',
'speaker_id': 'test_user_004',
'speaker_name': '张三',
'timestamp': '2026-01-28T08:34:23.204706+00:00',
'updateTime': '2026-01-28T08:34:23.204706+00:00',
'userIdList': ''},
'files': None}],
'meta': None},
{'data_type': 'Conversation',
'messages': [{'content': '我的结婚纪念日是10.1',
'extend': {'createBy': 'test_user_004',
'message_id': 'msg_116d1868',
'msgType': '1',
'orgId': '',
'receiverId': '',
'referList': '',
'roomId': 'test_group_004',
'speaker_id': 'test_user_004',
'speaker_name': '张三',
'timestamp': '2026-01-28T08:34:52.756364+00:00',
'updateTime': '2026-01-28T08:34:52.756364+00:00',
'userIdList': ''},
'files': None}],
'meta': None},
{'data_type': 'Conversation',
'messages': [{'content': '帮我记一下,我刚搬家到了洛杉矶的 '
'Silver Lake 社区。',
'extend': {'createBy': 'test_user_004',
'message_id': 'msg_001',
'msgType': '1',
'orgId': '',
'receiverId': '',
'referList': '',
'roomId': 'test_group_004',
'speaker_id': 'test_user_004',
'speaker_name': '张三',
'timestamp': '2026-01-28T08:36:05.868781+00:00',
'updateTime': '2026-01-28T08:36:05.868781+00:00',
'userIdList': ''},
'files': None}],
'meta': None},
{'data_type': 'Conversation',
'messages': [{'content': '好的,已经记下了。新家环境怎么样?',
'extend': {'createBy': 'assistant_001',
'message_id': 'msg_002',
'msgType': '1',
'orgId': '',
'receiverId': '',
'referList': '',
'roomId': 'test_group_004',
'speaker_id': 'assistant_001',
'speaker_name': 'AI助手',
'timestamp': '2026-01-28T08:38:05.868781+00:00',
'updateTime': '2026-01-28T08:38:05.868781+00:00',
'userIdList': ''},
'files': None}],
'meta': None},
{'data_type': 'Conversation',
'messages': [{'content': '挺好的,就是附近餐厅还没摸熟。对了,我对花生严重过敏,以后推荐菜谱记得提醒我。',
'extend': {'createBy': 'test_user_004',
'message_id': 'msg_003',
'msgType': '1',
'orgId': '',
'receiverId': '',
'referList': '',
'roomId': 'test_group_004',
'speaker_id': 'test_user_004',
'speaker_name': '张三',
'timestamp': '2026-01-28T08:40:05.868781+00:00',
'updateTime': '2026-01-28T08:40:05.868781+00:00',
'userIdList': ''},
'files': None}],
'meta': None}]}],
'pending_messages': [{'content': '带过来了,它还在适应新环境,最近只肯吃那种冷冻干燥的鹌鹑零食。',
'created_at': '2026-01-28T08:36:25.202000+00:00',
'group_id': 'test_group_004',
'group_name': '测试群组',
'id': '6979ca89364acd040a764320',
'message_create_time': '2026-01-28T08:44:05.868781+00:00',
'message_id': 'msg_005',
'refer_list': None,
'request_id': '72de0dea-a436-4ab5-b4d3-72375a3d5c4e',
'sender': 'test_user_004',
'sender_name': '张三',
'updated_at': '2026-01-28T08:36:25.202000+00:00',
'user_id': 'test_user_004'}],
'query_metadata': {'email': None,
'full_name': None,
'group_id': None,
'limit': None,
'memory_type': 'episodic_memory',
'phone': None,
'source': 'hybrid',
'user_id': 'test_user_004'},
'scores': [{'test_group_004': [0.1633865386247635,
0.0002647013170644641,
8.275055006379262e-05]}],
'total_count': 3},
'status': 'ok'}
========================================================`
Shows that three episodic_memory entries were retrieved, but no specific information is displayed.