feat: Integrate AoTai Hike Demo with MemOS Multi-View Memory System#1078
Merged
CaralHsi merged 68 commits intoMemTensor:poly-view-with-game-demofrom Feb 12, 2026
Merged
Conversation
…lic into feat/poly-view-mem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
This PR integrates the AoTai Hike game demo with MemOS's multi-view memory capabilities, demonstrating how multiple game roles can maintain independent memory spaces and extract memories from their own first-person perspectives.
Key Features
1. Multi-View Memory Integration
cube_{user_id}_world)cube_{role_id}_{role_id})multi_viewmode when messages containrole_idorrole_namefields2. Memory Flow
3. Core Implementation
MemoryAdapter (
adapters/memory.py):/product/add,/product/search,/product/chat/complete)CompanionBrain (
adapters/companion.py):chat_completeAPI with role-specific contextGameService (
services/game_service.py):Technical Details
Multi-View Memory Detection
When messages contain
role_idorrole_name, MemOS automatically:multi_viewmodeMemory Namespace
cube_{role_id}_{role_id}cube_{user_id}_worldFiles Changed
demos/AOTAI_Hike/backend/aotai_hike/adapters/memory.py- MemOS memory adapterdemos/AOTAI_Hike/backend/aotai_hike/adapters/companion.py- NPC dialogue generationdemos/AOTAI_Hike/backend/aotai_hike/services/game_service.py- Game service with memory integrationdemos/AOTAI_Hike/backend/aotai_hike/router.py- API routesdemos/AOTAI_Hike/README.md- Updated documentationdemos/AOTAI_Hike/INTRODUCTION_ZH.md- Chinese documentationdemos/AOTAI_Hike/INTRODUCTION_EN.md- English documentationRelated Issue
Related Issue (Required): Fixes #1084
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Reviewer Checklist