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.

791 B
Raw Blame
from enum import StrEnum

from pydantic import BaseModel

from core.plugin.entities.plugin import PluginDeclaration, PluginInstallationSource


class PluginBundleDependencyType(StrEnum):
    Github = PluginInstallationSource.Github.value
    Marketplace = PluginInstallationSource.Marketplace.value
    Package = PluginInstallationSource.Package.value


class PluginBundleDependency(BaseModel):
    class Github(BaseModel):
        repo_address: str
        repo: str
        release: str
        packages: str

    class Marketplace(BaseModel):
        organization: str
        plugin: str
        version: str

    class Package(BaseModel):
        unique_identifier: str
        manifest: PluginDeclaration

    type: PluginBundleDependencyType
    value: Github | Marketplace | Package