From 4eac2a2a93b9938852a0d7e9a9a6356ee6e24899 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Fri, 29 Aug 2025 11:55:47 +0800 Subject: [PATCH] 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 --- cookbook/simple_demo/memory.jsonl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cookbook/simple_demo/memory.jsonl diff --git a/cookbook/simple_demo/memory.jsonl b/cookbook/simple_demo/memory.jsonl new file mode 100644 index 00000000..5054c573 --- /dev/null +++ b/cookbook/simple_demo/memory.jsonl @@ -0,0 +1,26 @@ +[ + { + "workspace_id": "test_workspace4", + "memory_id": "922a556d988f47bcadd8228d9f2235dc", + "memory_type": "task", + "when_to_use": "When conducting a company analysis requiring multi-dimensional insights (e.g., financials, market position, strategic shifts)", + "content": "Split the analysis into 3-4 distinct subtopics (e.g., financial performance, market challenges, strategic initiatives) and perform targeted web searches for each. Use language matching the user's query (Chinese in this case) to ensure relevant results. Avoid broad single searches that may miss critical angles.", + "score": 0.0, + "time_created": "2025-08-29 01:44:37", + "time_modified": "2025-08-29 01:44:37", + "author": "qwen3-30b-a3b-thinking-2507", + "metadata": {} + }, + { + "workspace_id": "test_workspace4", + "memory_id": "5cac948c7e8141dfb7723ab482d3aa8c", + "memory_type": "task", + "when_to_use": "When verifying if retrieved information is sufficient to answer the user's query", + "content": "Always cross-check that the retrieved data covers all core aspects of the query before terminating. In this case, the financial metrics, market challenges, and strategic pivots were all covered in the search results, making further searches unnecessary. Never assume coverage—explicitly validate completeness.", + "score": 0.0, + "time_created": "2025-08-29 01:44:37", + "time_modified": "2025-08-29 01:44:37", + "author": "qwen3-30b-a3b-thinking-2507", + "metadata": {} + } +] \ No newline at end of file