refactor: 库代码迁移到 micro_agent/ 命名空间#43
Merged
PolarSnowLeopard merged 1 commit intomasterfrom Apr 10, 2026
Merged
Conversation
- core/ → micro_agent/core/ - tool/ → micro_agent/tool/ - task/base.py → micro_agent/task/base.py(库) - task/ 其余 ioeb 专属代码 → tasks/(应用层) - 所有 import 路径更新为 micro_agent.* 前缀 - 添加 micro_agent/__init__.py 便捷导入 - pyproject.toml 发包范围调整为 micro_agent* - 46 个测试全部通过,API 26 个路由正常加载 Made-with: Cursor
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.
Summary
将框架核心代码从顶层
core/、tool/、task/base.py迁移到micro_agent/命名空间下,为 PyPI 发布做准备。变更:
core/→micro_agent/core/tool/→micro_agent/tool/task/base.py→micro_agent/task/base.py(库代码)task/其余文件 →tasks/(ioeb 应用层,不进 pip 包)micro_agent.*前缀micro_agent/__init__.py便捷导入入口pyproject.toml发包范围改为micro_agent*验证:
pip install -e .成功uvicorn api.app:app不变Test Plan
pip install -e .安装成功from micro_agent import Agent, LLM, TaskConfig导入正常python -m pytest tests/46 passedMade with Cursor