Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agentrun/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def __getattr__(name: str):
return getattr(server, name)
except ImportError as e:
# 检查是否是缺少可选依赖导致的错误
if "fastapi" in str(e) or "uvicorn" in str(e):
if "fastapi" in str(e) or "uvicorn" in str(e) or "ag_ui" in str(e):
raise ImportError(
f"'{name}' requires the 'server' optional dependencies. "
"Install with: pip install agentrun-sdk[server]\n"
Expand Down