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.

599 B
Raw Blame
"""Plain audio values shared by the application and provider boundary."""

from collections.abc import Iterable
from dataclasses import dataclass
from typing import IO


@dataclass(frozen=True, slots=True)
class AudioAppRef:
    """App identity and mode snapshot; tenant_id identifies the app's owner."""

    app_id: str
    tenant_id: str
    app_mode: str


@dataclass(frozen=True, slots=True)
class AudioUpload:
    stream: IO[bytes]
    mime_type: str


@dataclass(frozen=True, slots=True)
class AudioOutput:
    data: Iterable[bytes] | bytes | bytearray | memoryview
    mime_type: str | None