Commit graph

46 commits

Author SHA1 Message Date
jinli.yl
a2b7a61664 feat(working_memory): add working memory demo with ReAct agent 2025-11-27 16:52:47 +08:00
Zhouwk
55e3bb1272
Merge pull request #34 from agentscope-ai/dev_1117
(feat): add context management
2025-11-26 11:11:42 +08:00
jinli.yl
ed7f8e32ef feat(summary): increase default keep_recent_count and optimize compression logic 2025-11-26 11:10:23 +08:00
jinli.yl
32bfef63f8 feat(memory): add working memory operations to retrieve and summary modules 2025-11-25 13:19:37 +08:00
jinli.yl
55eb1f87bc refactor(summary): remove system message handling in compression logic 2025-11-25 12:13:22 +08:00
jinli.yl
b421515c73 refactor(core): restructure context management and working memory modules 2025-11-24 21:17:02 +08:00
jinliyl
83d10b2c92
Merge branch 'main' into patch-1 2025-11-12 20:04:52 +08:00
Peng Wang
0a66966dad
typo 2025-11-10 22:34:50 +08:00
jinli.yl
73668f051e feat(core): add pre-commit hooks and improve module documentation 2025-11-07 14:14:11 +08:00
dengjiaji
ad0c8dd633 fix bug: update vector store access and memory list handling 2025-11-06 18:16:42 +08:00
jinli.yl
4239f8953a feat(summary): add validation and token estimation for tool call results 2025-10-29 20:47:25 +08:00
jinli.yl
69bf1e9d5f feat(memory): add tool call deduplication with hash-based detection 2025-10-29 16:05:35 +08:00
jinli.yl
d9f332ece2 docs(readme): update project name to memory management kit 2025-10-29 15:43:58 +08:00
jinli.yl
0039cf8bd9 feat(summary): support list input for tool names 2025-10-27 21:56:20 +08:00
jinli.yl
7e82a3179e feat(reme_ai): update version to 0.1.10.6 and enhance tool memory operations 2025-10-27 21:12:11 +08:00
jinli.yl
1412fa9ed1 feat(reme): implement ReMeApp and decouple flowllm dependencies 2025-10-22 21:53:59 +08:00
jinli.yl
594495de9e feat(memory): add is_summarized flag to track tool call summarization
- Add is_summarized boolean field to ToolCallResult schema
- Implement logic to mark tool calls as summarized after processing
- Skip summarization for tools with all recent calls already summarized
- Update summary operation to process only tools with unsummarized calls
- Enhance logging to show summarization and skip statistics
- Modify response to include count of summarized vs skipped tools
- Add documentation for smart skip logic and is_summarized feature
- Include test scenarios for skip logic and incremental summarization
2025-10-22 11:19:43 +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
12f0b7d124 feat(agent): implement mock search tools and tool memory benchmark
- Added LLMMockSearchOp for simulating search operations with configurable complexity- Created SearchToolA, SearchToolB, and SearchToolC with distinct performance profiles- Implemented UseMockSearchOp for intelligent tool selection based on query analysis
- Added test scripts and query datasets for evaluating tool memory effectiveness
- Integrated tool memory service for storing and retrieving tool performance data
- Created documentation for tool memory benchmark testing methodology
- Refactored agent module structure and imports
- Increased summary tool memory recent call count from20 to 30
2025-10-16 23:31:50 +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
a9f061b92d refactor(vector_store): update search functionality and documentation
- Remove deprecated `add_dict_filter` method from vector store operations
- Update `async_search` method to use `filter_dict` parameter for advanced filtering
- Modify examples in documentation to use the new `filter_dict` format for advanced filtering
- Update task memory and messages for consistency with new filtering approach
2025-09-07 15:58:31 +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
bf3fa875aa refactor(vector_store): update memory operations to use async search
- Update load_today_memory_op.py to use async version of _retrieve_today_memories
- Update memory_deduplication_op.py to use async version of _deduplicate_task_memories and _get_existing_task_memory_embeddings
- Update retrieve_memory_op.py to use async_search instead of search
2025-09-06 21:42:55 +08:00
jinli.yl
6bb3ab90fc refactor(llm): update LLM-related ops to use async execution
- Modify LLM-related ops to use async_execute instead of execute
- Replace chat method with achat for asynchronous LLM calls
- Update method signatures and return types to support async operations
- This change affects multiple files across the project
2025-09-06 20:27:25 +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
jinli.yl
cd37020ff5 refactor(README): update documentation and remove unused code
- Remove unused import in reme_ai/summary/task/__init__.py
- Remove unused constant in reme_ai/constants/common_constants.py
- Update README.md with new content and structure
- Update README_ZH.md with minor corrections
- Modify task memory documentation for clarity
2025-09-02 21:39:04 +08:00
jinli.yl
e8ca114e59 refactor(reme_ai): remove unused PDF processing components
- Remove MinerUPDFProcessor and related classes
- Delete pdf_preprocess_op_wrapper.py
- Update task_summary_ops.md to remove PDFPreprocessOp documentation
- Add LLM-related keywords to pyproject.toml
2025-09-02 20:52:14 +08:00
jinli.yl
a4d8e5912d docs(README): update ReMe results table and remove unused code
- Update the ReMe results table in README_ZH.md for better readability
- Remove unused and outdated code in trajectory_preprocess_op.py
2025-09-02 19:10:08 +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
2fdb51ff5e refactor(trajectory): add missing import for json module
- Added 'import json' at the beginning of trajectory_preprocess_op.py
- This import is necessary for handling JSON data in the trajectory preprocessing task
2025-08-31 16:04:20 +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
zouyingcao
fa6d847a0c fix bug[trajectory_preprocess_op]: parsing the tool_calls in correct format 2025-08-29 16:36:57 +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
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
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
423cf2f262 refactor(import): update import statements and rename classes across multiple modules
- Update import statements to use relative imports where appropriate
- Rename classes to match file names for better consistency
- Add new imports for recently added modules
2025-08-27 11:07:02 +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
4a2b7f9de1 mv experience maker file to reme_ai 2025-08-25 16:46:46 +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