Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

908 B
Raw Blame
"""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,
    ShellExecutionMode,
    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",
    "ShellExecutionMode",
    "ShellPromptObservation",
    "ShellProviderError",
]