mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 11:18:19 +08:00
10 lines
298 B
Python
10 lines
298 B
Python
from contextvars import ContextVar
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from core.workflow.entities.variable_pool import VariablePool
|
|
|
|
tenant_id: ContextVar[str] = ContextVar("tenant_id")
|
|
|
|
workflow_variable_pool: ContextVar["VariablePool"] = ContextVar("workflow_variable_pool")
|