Fix mem0 dependency for debug runtimes - #855
Open
FirstayZheng wants to merge 1 commit into
Open
Conversation
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.
背景
在 Studio 创建 Agent 并配置长期记忆后端为 mem0 时,本地/云端调试运行会在启动阶段失败:
根因是生成 Agent 项目的
requirements.txt已经会为 mem0 添加veadk-python[database],但 Studio 调试运行并不会安装临时项目里的 requirements,而是直接复用 Studio/WebUI 进程所在 Python 环境启动调试 runner。旧的 Studio 部署包只安装veadk-python,harness 镜像也没有带databaseextra,因此 mem0 SDK (mem0ai) 不会被安装。修改内容
veadk-python[database],让调试 runner 所在环境包含 mem0 依赖。--from-source构建本地 Studio wheel 时,为本地 wheel requirements 追加[database]extra。database,extensions,harnessextras,覆盖LONG_TERM_MEMORY_TYPE=mem0的运行场景。pip install mem0改为指向veadk-python[database]/mem0ai>=1.0.0,<2。验证
.venv/bin/pre-commit run --files ....venv/bin/python -m pytest tests/cli/test_cli_harness_open_source_defaults.py tests/cli/test_studio_deploy_target.py::test_studio_deploy_byteplus_wires_provider_to_cloud_engine_and_package tests/cli/test_studio_deploy_target.py::test_studio_deploy_from_source_bundles_unmirrored_dependencies tests/memory/long_term_memory_backends/test_mem0_backend.py tests/cli/test_studio_release.py tests/cli/test_studio_update.py::test_studio_update_preserves_branding_and_updates_existing_ids tests/cli/test_studio_update.py::test_studio_update_supports_byteplus_provider