Files
dify/dify-agent/src/dify_agent/adapters/shell/__init__.py
T
盐粒 Yanliandautofix-ci[bot] 916d7e1c96 refactor(dify-agent): download Binding files through Agent Stub (#40143)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-07 14:56:52 +00:00

33 lines
858 B
Python

"""Provider-agnostic shell adapter exports for the Dify agent.
Keep this package root light so importing shell protocols does not eagerly
require ``pydantic_settings`` or shellctl runtime dependencies.
"""
from dify_agent.adapters.shell.protocols import (
CompleteShellCommandResult,
ShellCommandProtocol,
ShellCommandResult,
ShellCommandStatus,
ShellPromptObservation,
ShellProviderError,
)
def __getattr__(name: str) -> object:
if name == "shellctl":
from importlib import import_module
return import_module("dify_agent.adapters.shell.shellctl")
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
__all__ = [
"CompleteShellCommandResult",
"ShellCommandProtocol",
"ShellCommandResult",
"ShellCommandStatus",
"ShellPromptObservation",
"ShellProviderError",
]