feat: add realtime workflow vision tools

This commit is contained in:
Xin Wang
2026-08-05 13:35:00 +08:00
parent 11374238f3
commit 10bea48d72
16 changed files with 362 additions and 103 deletions
-6
View File
@@ -438,8 +438,6 @@ def validate_graph(graph: dict[str, Any]) -> list[str]:
"defaultRealtimeResourceId"
):
errors.append("Realtime 工作流必须选择 Realtime 模型")
if runtime_mode == "realtime" and settings.get("visionEnabled"):
errors.append("Realtime 工作流暂不支持视觉能力")
if (
runtime_mode == "realtime"
and settings.get("knowledgeBaseId")
@@ -488,10 +486,6 @@ def validate_graph(graph: dict[str, Any]) -> list[str]:
f"Realtime Agent 节点 {node_id} 不支持节点级模型、语音或交互策略覆盖"
)
source = settings if data.get("inheritGlobalConfig", True) else data
if source.get("visionEnabled"):
errors.append(
f"Realtime Agent 节点 {node_id} 暂不支持视觉能力"
)
if (
source.get("knowledgeBaseId")
and source.get("knowledgeMode") != "on_demand"