Commit graph

46 commits

Author SHA1 Message Date
jinliyl
da8260e5c0
Merge pull request #59 from agentscope-ai/dev_czy_1126
Update appworld_react_agent.py for better reproduction & Upload task memory paper data
2025-12-25 14:07:38 +08:00
caozouying.czy
b5676fc4b8 update default config 2025-12-24 14:35:09 +08:00
zouyingcao
147901c66f
Update default.yaml by adding MemoryDeduplicationOp in summary_task_memory flow 2025-12-02 20:43:44 +08:00
jinli.yl
8791de6d6f refactor(working_memory): rename context offload operations to working memory summarization 2025-11-25 10:59:38 +08:00
jinli.yl
b421515c73 refactor(core): restructure context management and working memory modules 2025-11-24 21:17:02 +08:00
jinli.yl
660eed93bb feat(file_tool): add save_answer option to BatchWriteFileOp 2025-11-21 10:37:59 +08:00
jinli.yl
2ff75fd580 feat(agent): add agentic retrieve operator with RAG-friendly tools 2025-11-20 17:01:29 +08:00
jinli.yl
1886da9020 feat(context): implement context offload with compaction and compression 2025-11-20 11:13:26 +08:00
jinli.yl
43b33a6d63 feat(config): add token_count configuration for Qwen models 2025-11-18 19:21:09 +08:00
jinli.yl
a093a9428d refactor(context): restructure file system operations and context compaction 2025-11-18 15:36:20 +08:00
jinli.yl
22ccb4b83f docs(readme): update star request message styling 2025-11-17 16:00:39 +08:00
jinli.yl
bd5f7af0fd refactor(config): update flow definitions to use class-based operators 2025-11-07 15:14:22 +08:00
jinli.yl
73668f051e feat(core): add pre-commit hooks and improve module documentation 2025-11-07 14:14:11 +08:00
zouyingcao
97ab259ebe
Update default.yaml with summarizer ops 2025-10-30 14:39:30 +08:00
jinli.yl
93154da4d8 feat(config): add retrieve and summary task memory flows 2025-10-27 18:22:25 +08:00
jinli.yl
1412fa9ed1 feat(reme): implement ReMeApp and decouple flowllm dependencies 2025-10-22 21:53:59 +08:00
jinli.yl
49819a8e54 feat(tool): implement tool memory management and mock search tools- Added RetrieveToolMemoryOp for retrieving tool memory guidelines- Implemented LLM-based mock search tools with configurable complexity levels
- Enhanced tool call result parsing with improved scoring logic (0.0 or 1.0)
- Updated tool memory schema to reflect binary success/failure scoring
- Added deterministic behavior support via seed configuration in mock tools
- Improved evaluation prompts to focus on result quality over success flags
- Extended README with tool memory documentation and usage examples- Added utility functions for generating mock tool call results
- Removed deprecated test file for UseMockSearchOp- Updated default configurations to include use_mock_search operation- Bumped version to0.1.10 and updated flowllm dependency requirement
- Moved deprecation warnings to main init file
- Simplified tool memory summary formatting by removing redundant statistics
- Fixed tool call result processing to handle multiple tool names concurrently
2025-10-21 21:03:14 +08:00
jinli.yl
b07213791f feat(tool): implement tool memory management and summarization
- Added SummaryToolMemoryOp for analyzing tool usage patterns- Implemented RetrieveToolMemoryOp for fetching tool memories
- Enhanced ParseToolCallResultOp with evaluation and scoring logic
- Updated ToolMemory schema with summary, evaluation, and score fields
- Added new prompt templates for tool evaluation and summarization
- Configured tool memory operations in default.yaml
- Fixed success flag logic in ToolCallResult processing
- Improved statistical analysis for tool call history
- Added concurrent processing for tool call evaluations
- Integrated tool memory updates with vector store operations
2025-10-16 15:49:49 +08:00
jinli.yl
b9da8d2a7f feat(memory): add tool call result handling and memory management
- Add new ToolCallResult and ToolMemory schemas for tracking tool executions
- Implement tool memory retrieval and summarization flows in default config
- Register new parse_tool_call_result_op for processing tool call results
- Extend memory conversion logic to support tool memory type
- Add test cases for tool memory serialization and deserialization
- Include token counting utilities for text processing tasks
2025-10-16 10:50:27 +08:00
jinliyl
560e746cea
reformat code, support flowllm 0.1.9 (#26)
* reformat code, support flowllm 0.1.9

* Update README.md

add FLOW_USE_FRAMEWORK=true

* Update README_ZH.md

add FLOW_USE_FRAMEWORK=true

* Update index.md

add FLOW_USE_FRAMEWORK=true

* add env FLOW_APP_NAME=ReMe
2025-09-16 16:49:56 +08:00
jinli.yl
8d407b4ed9 refactor(config): update data types in default.yaml and upgrade flowllm dependency
- Change 'str' to 'string' for consistency in data types
- Rename 'list' to 'array' for JSON compatibility
- Update 'bool' to 'boolean' and 'int' to 'integer' for standardization
- Upgrade flowllm dependency from >=0.1.6 to >=0.1.7
2025-09-08 15:55:25 +08:00
jinli.yl
948cddf423 feat(service): implement base memory service and personal/task memory services
- Add BaseMemoryService abstract class with common memory operations
- Implement PersonalMemoryService and TaskMemoryService concrete classes
- Update default config to use async services for memory operations
- Modify recall and retrieve ops to use context for top_k parameter
- Update vector store action op to handle list action and return result directly
2025-09-07 14:15:36 +08:00
jinli.yl
4a00f51c3c refactor(demo): update personal memory demo and remove unused files
- Update personal memory demo to use new memory format
- Remove unused task memory and message files
- Adjust vector store configuration in default.yaml
- Modify load_today_memory_op to use new search method
2025-09-07 00:03:49 +08:00
jinli.yl
49c73b15b3 refactor(reme_ai): update app and ops for async execution and new LLM features
- Update app.py to use async service initialization
- Refactor multiple ops to use async_execute instead of execute
- Add support for stream and use_async flags in config
- Update LLM usage to use achat instead of chat
- Add new LLM models and update existing ones in config
- Improve error handling and logging in several ops
- Update dependencies and Python version requirements
2025-09-06 20:17:33 +08:00
zouyingcao
e87d4166a3 Merge branch 'merge' of https://github.com/modelscope/MemoryScope into merge 2025-09-02 16:54:30 +08:00
zouyingcao
c6bc749ab5 add: customize op in config 2025-09-02 16:54:27 +08:00
jinli.yl
80dae9953e refactor(memory): update personal memory flows and adjust related components
- Move retrieve_personal_memory and summary_personal_memory flows to new positions in default.yaml
- Update info_filter_op to handle trajectories instead of messages
- Adjust use_personal_memory_demo to use trajectories in API requests
2025-09-01 14:19:38 +08:00
jinli.yl
0c2fb9a522 refactor(reme_ai): formatting and minor code improvements
- Removed unnecessary comments
- Improved code formatting across multiple files
- Updated import statements and removed unused imports
- Refactored some function definitions for better readability
2025-08-31 15:58:59 +08:00
jinli.yl
e26338fb95 feat(react): add simple react operator and update related functionalities
- Add SimpleReactOp to react module
- Update reme_ai/__init__.py to include react module
- Modify contra_repeat_op.py to use memory_id instead of id
- Adjust datetime_handler.py to handle string datetime conversion
- Update default.yaml to include react flow content
- Modify get_observation_op.py and get_observation_with_time_op.py to use workspace_id from context
- Update test/http_client_test.py to test new react functionality
- Adjust messages.jsonl to reflect new analysis approach for Xiaomi Corporation
2025-08-29 14:40:30 +08:00
jinli.yl
adce394cd0 feat(react): add simple react operator and update related functionalities
- Add SimpleReactOp to react module
- Update reme_ai/__init__.py to include react module
- Modify contra_repeat_op.py to use memory_id instead of id
- Adjust datetime_handler.py to handle string datetime conversion
- Update default.yaml to include react flow content
- Modify get_observation_op.py and get_observation_with_time_op.py to use workspace_id from context
- Update test/http_client_test.py to test new react functionality
- Adjust messages.jsonl to reflect new analysis approach for Xiaomi Corporation
2025-08-29 11:56:50 +08:00
caozouying.czy
7c639184cb add: add new op for ReMe service 2025-08-29 01:04:06 +08:00
caozouying.czy
61a83892bd update: merge the config.yaml 2025-08-28 14:44:06 +08:00
caozouying.czy
6decf51793 remove the change in vector_store_action_op 2025-08-28 14:33:38 +08:00
jinli.yl
074634d884 refactor(reme_ai): consolidate personal memory and update related ops
- Rename and restructure personal memory consolidation flow
- Update memory handling in context and operations
- Refactor memory schema to use time_created and time_modified fields
- Improve error handling and logging in memory operations
- Update test cases for new memory consolidation flow
2025-08-28 14:31:03 +08:00
jinli.yl
527e04140c refactor(personal): standardize memory operations and improve time handling
- Rename and restructure memory loading operations
- Enhance time extraction and formatting capabilities- Implement more robust memory filtering and ranking logic
- Refactor observation extraction methods for better reusability
- Improve logging and error handling in memory operations
2025-08-28 01:24:34 +08:00
caozouying.czy
8dba31f2b2 update: combine the default.yaml 2025-08-27 18:41:46 +08:00
caozouying.czy
917a1a4725 add: add op about memory management 2025-08-27 18:35:53 +08:00
jinli.yl
8600015632 refactor(reme_ai): rename and restructure modules for better organization
- Rename `worker` to `op` for operation classes
- Remove `memoryscope` package
- Create `constants` package with common constants
- Update module imports and class names accordingly
2025-08-27 17:05:40 +08:00
jinli.yl
9fb7aa4e78 feat(agent): add agent module and update related components
- Add agent module to reme_ai package
- Update retrieve module to include agent-related functionality
- Modify summary module to use new agent features
- Update configuration to support agent operations
2025-08-27 11:37:14 +08:00
jinli.yl
3e6bd05f60 feat(vector_store): update vector store action operator
- Modify input schema to use 'action' instead of 'query'- Update action enum to include specific vector store operations
- Change freq_threshold type from float to int
- Remove unnecessary agent configuration from default.yaml
2025-08-27 10:42:00 +08:00
jinli.yl
ab4bf43a24 refactor(summary): optimize task memory processing and validation
- Rename and restructure task memory related operations
- Implement static methods for utility functions
- Improve type safety and error handling
- Update memory validation and deduplication logic
- Refactor comparative summary generation
2025-08-26 23:32:57 +08:00
jinli.yl
77ce2d22d3 refactor(summary): rename experiences to task memories and optimize related ops
- Rename ExperienceDeduplicationOp to TaskMemoryDeduplicationOp
- Rename ExperienceValidationOp to TaskMemoryValidationOp
- Update comparative extraction, failure extraction, and success extraction ops to use task memories
- Refactor PDFPreprocessOp and ReactV1Op for better code structure
- Remove unused simple_config.yaml
- Update default.yaml with new task memory related flows
2025-08-26 23:05:49 +08:00
jinli.yl
5a3d8ab74d feat(reme_ai): implement summary functionality and enhance vector store operations
- Add summary module with simple summary and personal summary tasks
- Implement new vector store operations for updating and managing memory
- Refactor retrieve module to improve query building and memory rewriting
- Update schema and utils modules for better data handling and PDF processing
2025-08-26 20:56:30 +08:00
jinli.yl
cceebc631e refactor: rename package and restructure modules
- Rename experiencemaker package to reme_ai
- Move personal modules to new directory structure
- Remove unused classes and imports
- Update module initialization files
2025-08-25 23:59:08 +08:00
jinli.yl
164377572d feat(reme_ai): implement retrieve task memory flow and update related components
- Add retrieve task memory flow to default.yaml for memory recall
- Update vector store initialization and import RecallVectorStoreOp- Modify app.py to use ConfigParser for configuration parsing
- Remove unnecessary comments and update flow description in default.yaml- Add test script for retrieve task memory using MCP client
- Update project metadata and dependencies in pyproject.toml
2025-08-25 16:35:02 +08:00
jinli.yl
4739d39f3f feat(reme_ai): implement memory retrieval and merging functionality
- Add BuildQueryOp to construct query for memory retrieval-Implement MergeMemoryOp to combine retrieved memories
- Create RecallVectorStoreOp to fetch memories from vector store
- Develop memory representation and conversion methods
- Establish initial project structure and dependencies
2025-08-25 16:10:53 +08:00