| 1234567891011121314151617181920 | from contextvars import ContextVarfrom threading import Lockfrom typing import TYPE_CHECKINGif TYPE_CHECKING:    from core.plugin.entities.plugin_daemon import PluginModelProviderEntity    from core.tools.plugin_tool.provider import PluginToolProviderController    from core.workflow.entities.variable_pool import VariablePooltenant_id: ContextVar[str] = ContextVar("tenant_id")workflow_variable_pool: ContextVar["VariablePool"] = ContextVar("workflow_variable_pool")plugin_tool_providers: ContextVar[dict[str, "PluginToolProviderController"]] = ContextVar("plugin_tool_providers")plugin_tool_providers_lock: ContextVar[Lock] = ContextVar("plugin_tool_providers_lock")plugin_model_providers: ContextVar[list["PluginModelProviderEntity"] | None] = ContextVar("plugin_model_providers")plugin_model_providers_lock: ContextVar[Lock] = ContextVar("plugin_model_providers_lock")
 |