Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(type-check): resolve missing-attribute in app dataset join update handler (#33071)
非法操作dc31b075338d
diff --git a/api/events/event_handlers/update_app_dataset_join_when_app_model_config_updated.py b/api/events/event_handlers/update_app_dataset_join_when_app_model_config_updated.pyindex 69959acd19f..b70c2183d2a 100644--- a/api/events/event_handlers/update_app_dataset_join_when_app_model_config_updated.py+++ b/api/events/event_handlers/update_app_dataset_join_when_app_model_config_updated.py@@ -1,3 +1,5 @@+from typing import Any, cast+from sqlalchemy import selectfrom events.app_event import app_model_config_was_updated@@ -54,9 +56,11 @@ def get_dataset_ids_from_model_config(app_model_config: AppModelConfig) -> set[scontinuetool_type = list(tool.keys())[0]- tool_config = list(tool.values())[0]+ tool_config = cast(dict[str, Any], list(tool.values())[0])if tool_type == "dataset":- dataset_ids.add(tool_config.get("id"))+ dataset_id = tool_config.get("id")+ if isinstance(dataset_id, str):+ dataset_ids.add(dataset_id)# get dataset from dataset_configsdataset_configs = app_model_config.dataset_configs_dict