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
raising error if plugin not initialized (#15319)
znnf8ac3820721a
diff --git a/api/core/plugin/entities/plugin.py b/api/core/plugin/entities/plugin.pyindex ad39b972bfa..61f8a65918f 100644--- a/api/core/plugin/entities/plugin.py+++ b/api/core/plugin/entities/plugin.py@@ -5,6 +5,7 @@ from collections.abc import Mappingfrom typing import Any, Optionalfrom pydantic import BaseModel, Field, model_validator+from werkzeug.exceptions import NotFoundfrom core.agent.plugin_entities import AgentStrategyProviderEntityfrom core.model_runtime.entities.provider_entities import ProviderEntity@@ -153,6 +154,8 @@ class GenericProviderID:return f"{self.organization}/{self.plugin_name}/{self.provider_name}"def __init__(self, value: str, is_hardcoded: bool = False) -> None:+ if not value:+ raise NotFound("plugin not found, please add plugin")# check if the value is a valid plugin id with format: $organization/$plugin_name/$provider_nameif not re.match(r"^[a-z0-9_-]+\/[a-z0-9_-]+\/[a-z0-9_-]+$", value):# check if matches [a-z0-9_-]+, if yes, append with langgenius/$value/$value