mirror of
https://github.com/langgenius/dify.git
synced 2026-03-27 01:00:13 +08:00
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: WH-2099 <wh2099@pm.me>
37 lines
881 B
Python
37 lines
881 B
Python
"""
|
|
Application-layer context adapters.
|
|
|
|
Concrete execution-context implementations live here so `dify_graph` only
|
|
depends on injected context managers rather than framework state capture.
|
|
"""
|
|
|
|
from context.execution_context import (
|
|
AppContext,
|
|
ContextProviderNotFoundError,
|
|
ExecutionContext,
|
|
ExecutionContextBuilder,
|
|
IExecutionContext,
|
|
NullAppContext,
|
|
capture_current_context,
|
|
read_context,
|
|
register_context,
|
|
register_context_capturer,
|
|
reset_context_provider,
|
|
)
|
|
from context.models import SandboxContext
|
|
|
|
__all__ = [
|
|
"AppContext",
|
|
"ContextProviderNotFoundError",
|
|
"ExecutionContext",
|
|
"ExecutionContextBuilder",
|
|
"IExecutionContext",
|
|
"NullAppContext",
|
|
"SandboxContext",
|
|
"capture_current_context",
|
|
"read_context",
|
|
"register_context",
|
|
"register_context_capturer",
|
|
"reset_context_provider",
|
|
]
|