Commit Graph

197 Commits

Author SHA1 Message Date
Ke Sun
bf1dfd97f0 feat(memory-api): implement memory read/write API service endpoints
- Add MemoryAPIService with read_memory and write_memory methods for managing user memories
- Create memory_api_schema.py with request/response schemas for read and write operations
- Implement write_memory_api_service endpoint for storing memory content with configurable storage backends
- Implement read_memory_api_service endpoint for querying memories with context-aware responses
- Add memory-specific error codes (MEMORY_WRITE_FAILED, MEMORY_READ_FAILED, MEMORY_CONFIG_NOT_FOUND) to error_codes.py
2025-12-26 11:43:51 +08:00
Mark
2fa3bebe8f Merge branch 'develop-mark' into develop 2025-12-26 10:25:56 +08:00
Mark
553e658e05 [modify] app_api 2025-12-26 10:24:36 +08:00
孙科
7e03ae2bd3 Merge #63 into develop from fix/llm-output
[fix]Refresh formatted output

* fix/llm-output: (3 commits)
  [fix]Refresh formatted output
  [fix]Refresh formatted output
  Merge branch 'fix/llm-output' of codeup.aliyun.com:redbearai/python/redbear-mem...

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/63
2025-12-25 18:59:22 +08:00
lanceyq
f349fa086c Merge branch 'fix/llm-output' of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/llm-output 2025-12-25 18:56:42 +08:00
lanceyq
8900fc4dab [fix]Refresh formatted output 2025-12-25 18:56:37 +08:00
lanceyq
7421ec0fcc [fix]Refresh formatted output 2025-12-25 18:55:08 +08:00
朱文辉
5e8bef3d59 Merge #62 into develop from feature/20251219_myh
feat(workflow): add VariableAggregatorNode for aggregating workflow variables

* feature/20251219_myh: (1 commits)
  feat(workflow): add VariableAggregatorNode for aggregating workflow variables

Signed-off-by: Eternity <1533512157@qq.com>
Commented-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/62
2025-12-25 18:44:30 +08:00
mengyonghao
7181d41e51 feat(workflow): add VariableAggregatorNode for aggregating workflow variables 2025-12-25 18:38:53 +08:00
孙科
614037417f Merge #61 into develop from fix/llm-output
[fix]LLM formatted output

* fix/llm-output: (3 commits)
  [fix]LLM formatted output
  [fix]LLM formatted output
  Merge branch &#39;fix/llm-output&#39; of codeup.aliyun.com:redbearai/python/redbear-mem...

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/61
2025-12-25 18:22:34 +08:00
lanceyq
ca0fb1d5b9 Merge branch 'fix/llm-output' of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/llm-output 2025-12-25 18:21:04 +08:00
lanceyq
3376d7e3c8 [fix]LLM formatted output 2025-12-25 18:21:00 +08:00
lanceyq
f047820196 [fix]LLM formatted output 2025-12-25 18:20:08 +08:00
Mark
ac25b6ff11 [add] migrations script 2025-12-25 17:51:27 +08:00
朱文辉
31918d5847 Merge #57 into develop from feature/20251219_myh
feat(workflow): add Jinja2 template rendering node

* feature/20251219_myh: (4 commits)
  feat(workflow): support variables wrapped with {{}} in assignment nodes, add input config example
  feat(workflow): add default User-Agent and redirect following for HTTP request ...
  fix(workflow): fix missing re-ranking for hybrid retrieval results in knowledge...
  feat(workflow): add Jinja2 template rendering node

Signed-off-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/57
2025-12-25 17:38:27 +08:00
朱文辉
b291cdffe5 Merge #59 into develop from feature/20251219_xjn
feat(tool system): Tool system reengineering

* feature/20251219_xjn: (2 commits)
  feat(tool system): tool system development
  feat(tool system): Tool system reengineering

Signed-off-by: 谢俊男 <accounts_6853d0ea6f8174722fb0c8f1@mail.teambition.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/59
2025-12-25 17:38:01 +08:00
谢俊男
04be3088a2 feat(tool system): Tool system reengineering 2025-12-25 17:30:20 +08:00
谢俊男
3bcaead413 feat(tool system): tool system development 2025-12-25 17:28:21 +08:00
mengyonghao
eeb7a3a68d feat(workflow): add Jinja2 template rendering node 2025-12-25 16:54:57 +08:00
Mark
dd18e2f599 [modify] optimize import 2025-12-25 14:59:40 +08:00
Mark
74e2a48286 [modify] optimize import 2025-12-25 14:59:20 +08:00
mengyonghao
0b141fb952 fix(workflow): fix missing re-ranking for hybrid retrieval results in knowledge base node, add config example 2025-12-25 14:47:22 +08:00
mengyonghao
aef7ae2cce feat(workflow): add default User-Agent and redirect following for HTTP request node, add config example 2025-12-25 14:44:47 +08:00
Mark
73fa2b666b [add] migration script 2025-12-25 14:44:26 +08:00
mengyonghao
8accd36f9e feat(workflow): support variables wrapped with {{}} in assignment nodes, add input config example 2025-12-25 14:41:41 +08:00
孙科
ab45705458 Merge #55 into develop from fix/user_summary
[fix]Allow null to be passed in for hire_date.

* fix/user_summary: (3 commits)
  [fix]Allow null to be passed in for hire_date.
  [fix]Allow null to be passed in for hire_date.
  Merge branch &#39;fix/user_summary&#39; of codeup.aliyun.com:redbearai/python/redbear-m...

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/55
2025-12-25 14:36:16 +08:00
lanceyq
2516fe7066 Merge branch 'fix/user_summary' of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/user_summary 2025-12-25 14:34:55 +08:00
lanceyq
097d36c897 [fix]Allow null to be passed in for hire_date. 2025-12-25 14:34:50 +08:00
lanceyq
87da1fa188 [fix]Allow null to be passed in for hire_date. 2025-12-25 14:33:37 +08:00
朱文辉
02204889ea Merge #51 into develop from feature/20251219_myh
feat(workflow): add HTTP request node

* feature/20251219_myh: (3 commits)
  feat(workflow): add HTTP request node
  refactor(workflow): organize knowledge base code structure and add comments
  fix(workflow): correct property usage in HTTP request node

Signed-off-by: Eternity <1533512157@qq.com>
Commented-by: Eternity <1533512157@qq.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/51
2025-12-25 13:52:35 +08:00
Mark
604ffeca66 [add] app api 2025-12-25 10:07:01 +08:00
mengyonghao
68901e2642 fix(workflow): correct property usage in HTTP request node 2025-12-24 21:32:38 +08:00
mengyonghao
3993aa55ea refactor(workflow): organize knowledge base code structure and add comments 2025-12-24 21:24:21 +08:00
mengyonghao
31a7727992 feat(workflow): add HTTP request node
- Introduce a new HttpRequestNode to enable external HTTP API calls in workflows
- Support multiple HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD)
- Support authentication strategies (None, Basic, Bearer, Custom header)
- Support multiple request body types (JSON, form-data, x-www-form-urlencoded, raw)
- Add configurable timeout, retry, and SSL verification
- Provide flexible error handling strategies (none, default response, branch)
2025-12-24 21:23:08 +08:00
Mark
2b76db6371 [modify] env.example 2025-12-24 21:01:04 +08:00
Mark
4447860e43 [fix] code 2025-12-24 21:00:10 +08:00
Mark
a7d18712b4 Merge branch 'develop' of codeup.aliyun.com:redbearai/python/redbear-mem-open into develop
# Conflicts:
#	api/app/services/workspace_service.py
2025-12-24 20:59:51 +08:00
Mark
c21ae4c571 [add] app chat service 2025-12-24 20:54:04 +08:00
Mark
bbd73d5e95 [add] app chat v1 2025-12-24 20:35:04 +08:00
乐力齐
cf900219a3 Merge #48 into develop from fix/othername-name
[fix]Fix the data structure + implement memory dashboard display

* fix/othername-name: (18 commits squashed)

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [fix]Restore the display of memory types

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Restore the display of memory types

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [updated]Update the title of the &quot;analytics/node_statistics&quot; log

  - [fix]Fix the data structure + implement memory dashboard display

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Restore the display of memory types

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Restore the display of memory types

  - [fix]Fix the data structure + implement memory dashboard display

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/48
2025-12-24 10:55:05 +00:00
Ke Sun
d22f8f97a6 Merge branch 'feature/update-workspace-model' of codeup.aliyun.com:redbearai/python/redbear-mem-open into feature/update-workspace-model 2025-12-24 18:32:45 +08:00
Ke Sun
d8336503bc feat(workspace): add workspace models configuration update endpoint
- Add PUT endpoint to update workspace LLM, embedding, and rerank model configurations
- Create WorkspaceModelsUpdate schema for model configuration update requests
- Create WorkspaceModelsConfig schema for model configuration responses with proper validation
- Implement update_workspace_models_configs service method to persist model configuration changes
- Update workspace_models_configs GET endpoint to return validated WorkspaceModelsConfig response
- Reorganize imports across controller, schema, and service files for consistency and readability
- Add proper logging for model configuration updates with user and workspace context
2025-12-24 18:21:47 +08:00
Ke Sun
caf9b8a9da feat(workspace): add workspace models configuration update endpoint
- Add PUT endpoint to update workspace LLM, embedding, and rerank model configurations
- Create WorkspaceModelsUpdate schema for model configuration update requests
- Create WorkspaceModelsConfig schema for model configuration responses with proper validation
- Implement update_workspace_models_configs service method to persist model configuration changes
- Update workspace_models_configs GET endpoint to return validated WorkspaceModelsConfig response
- Reorganize imports across controller, schema, and service files for consistency and readability
- Add proper logging for model configuration updates with user and workspace context
2025-12-24 18:21:36 +08:00
乐力齐
9cf8d5cb0a Merge #47 into develop from fix/othername-name
[fix]Fix the bug that affects user memory.

* fix/othername-name: (11 commits squashed)

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [fix]Restore the display of memory types

  - [fix]Fix the issue with the display of the user&#39;s memory list

  - [fix]Ensure the six dimensions of emotional expression

  - [fix]Restore the display of memory types

  - Merge branch &#39;fix/othername-name&#39; of codeup.aliyun.com:redbearai/python/redbear-mem-open into fix/othername-name

  - [updated]Update the title of the &quot;analytics/node_statistics&quot; log

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/47
2025-12-24 10:11:31 +00:00
lixiangcheng1
6338edda11 [ADD]Support parsing of unstructured data MP3, MP4, etc 2025-12-24 17:50:03 +08:00
孙科
ef6fca5317 Merge #45 into develop from fix/user_summary
[fix]Delete the unnecessary &quot;analytics_user_summary&quot;

* fix/user_summary: (2 commits)
  [fix]Delete the unnecessary &quot;analytics_user_summary&quot;
  [fix]Fix the log error

Signed-off-by: 乐力齐 <accounts_690c7b0af9007d7e338af636@mail.teambition.com>
Reviewed-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Merged-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/45
2025-12-24 17:24:23 +08:00
lanceyq
bb666eef23 [fix]Fix the log error 2025-12-24 17:18:43 +08:00
lanceyq
d18c2a491a [fix]Delete the unnecessary "analytics_user_summary" 2025-12-24 17:13:22 +08:00
朱文辉
196832e09b Merge #44 into develop from refactor/memory-config-management
Merge remote-tracking branch &#39;origin/develop&#39; into refactor/memory-config-management

* refactor/memory-config-management: (7 commits)
  refactor(memory): restructure memory agent and config management
  Merge remote-tracking branch &#39;origin/develop&#39; into refactor/memory-config-management
  refactor(memory): restructure memory system and improve configuration management
  Merge remote-tracking branch &#39;origin/develop&#39; into refactor/memory-config-management
  refactor(memory): reorganize imports and move MemoryClientFactory to utils
  feat(memory): make config_id optional and improve configuration validation
  Merge remote-tracking branch &#39;origin/develop&#39; into refactor/memory-config-management

Signed-off-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com>
Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>
Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/44
2025-12-24 16:12:13 +08:00
Ke Sun
292fef0fa7 Merge remote-tracking branch 'origin/develop' into refactor/memory-config-management 2025-12-24 16:07:27 +08:00