Files
dify/api/core/sandbox/initializer/base.py
2026-01-22 19:42:09 +08:00

15 lines
330 B
Python

from abc import ABC, abstractmethod
from core.sandbox.sandbox import Sandbox
class SandboxInitializer(ABC):
@abstractmethod
def initialize(self, env: Sandbox) -> None: ...
def async_initialize(self) -> bool:
"""
Whether the initializer needs to run asynchronously.
"""
return False