mirror of
https://github.com/langgenius/dify.git
synced 2026-03-25 14:01:06 -04:00
- Migrate core.model_runtime -> dify_graph.model_runtime across 20+ files - Migrate core.workflow.file -> dify_graph.file across 15+ files - Migrate core.workflow.enums -> dify_graph.enums in service files - Fix SandboxContext phantom import in dify_graph/context/__init__.py - Fix core.app.workflow.node_factory -> core.workflow.node_factory - Fix toast import paths (useToastContext from toast/context) - Fix app-info.tsx import paths for relocated app-operations - Fix 15 frontend test files for API changes, missing QueryClientProvider, i18n key renames, and component behavior changes Made-with: Cursor
32 lines
760 B
Python
32 lines
760 B
Python
"""
|
|
Execution Context - Context management for workflow execution.
|
|
|
|
This package provides Flask-independent context management for workflow
|
|
execution in multi-threaded environments.
|
|
"""
|
|
|
|
from dify_graph.context.execution_context import (
|
|
AppContext,
|
|
ContextProviderNotFoundError,
|
|
ExecutionContext,
|
|
IExecutionContext,
|
|
NullAppContext,
|
|
capture_current_context,
|
|
read_context,
|
|
register_context,
|
|
register_context_capturer,
|
|
reset_context_provider,
|
|
)
|
|
__all__ = [
|
|
"AppContext",
|
|
"ContextProviderNotFoundError",
|
|
"ExecutionContext",
|
|
"IExecutionContext",
|
|
"NullAppContext",
|
|
"capture_current_context",
|
|
"read_context",
|
|
"register_context",
|
|
"register_context_capturer",
|
|
"reset_context_provider",
|
|
]
|