mirror of
https://github.com/langgenius/dify.git
synced 2026-02-12 22:01:20 -05:00
15 lines
330 B
Python
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
|