init agent project
This commit is contained in:
10
agents/root_agent/__init__.py
Normal file
10
agents/root_agent/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# 将项目根目录加入 sys.path(adk web 从 agents/ 启动)
|
||||
# __file__ = agents/root_agent/__init__.py → parent.parent.parent = workspace/
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent.parent))
|
||||
|
||||
from . import agent
|
||||
|
||||
__all__ = ["agent"]
|
||||
Reference in New Issue
Block a user