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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
"""Public run-protocol exports shared by the Dify Agent server and clients.
Stub-specific protocol DTOs live under ``dify_agent.agent_stub.protocol`` so the
run API package boundary stays explicit.
"""
from .schemas import (
DIFY_AGENT_HISTORY_LAYER_ID,
DIFY_AGENT_MODEL_LAYER_ID,
DIFY_AGENT_OUTPUT_LAYER_ID,
RUN_EVENT_ADAPTER,
AgentRunUsage,
BaseRunEvent,
CancelRunRequest,
CancelRunResponse,
CreateRunRequest,
CreateRunResponse,
EmptyRunEventData,
PydanticAIStreamRunEvent,
RunCancelledEvent,
RunCancelledEventData,
RunEvent,
RunComposition,
RunEventType,
RunEventsResponse,
RunFailedEvent,
RunFailedEventData,
RunFailureType,
RunLayerSpec,
SessionSnapshot,
RunStartedEvent,
RunStatus,
RunStatusResponse,
RunSucceededEvent,
RunSucceededEventData,
utc_now,
)
from .execution_binding import (
CreateExecutionBindingRequest,
CreateExecutionBindingResponse,
DestroyExecutionBindingRequest,
)
from .binding_file import (
BindingFileDownloadRequest,
BindingFileDownloadResponse,
BindingFileEntry,
BindingFileListRequest,
BindingFileListResponse,
BindingFileReadRequest,
BindingFileReadResponse,
)
from .home_snapshot import (
CreateHomeSnapshotFromBindingRequest,
DeleteHomeSnapshotRequest,
HomeSnapshotResponse,
)
__all__ = [
"BaseRunEvent",
"BindingFileDownloadRequest",
"BindingFileDownloadResponse",
"BindingFileEntry",
"BindingFileListRequest",
"BindingFileListResponse",
"BindingFileReadRequest",
"BindingFileReadResponse",
"AgentRunUsage",
"CancelRunRequest",
"CancelRunResponse",
"CreateRunRequest",
"CreateRunResponse",
"CreateExecutionBindingRequest",
"CreateExecutionBindingResponse",
"CreateHomeSnapshotFromBindingRequest",
"DeleteHomeSnapshotRequest",
"DIFY_AGENT_HISTORY_LAYER_ID",
"DIFY_AGENT_MODEL_LAYER_ID",
"DIFY_AGENT_OUTPUT_LAYER_ID",
"DestroyExecutionBindingRequest",
"EmptyRunEventData",
"HomeSnapshotResponse",
"PydanticAIStreamRunEvent",
"RUN_EVENT_ADAPTER",
"RunCancelledEvent",
"RunCancelledEventData",
"RunComposition",
"RunEvent",
"RunEventType",
"RunEventsResponse",
"RunFailedEvent",
"RunFailedEventData",
"RunFailureType",
"RunLayerSpec",
"SessionSnapshot",
"RunStartedEvent",
"RunStatus",
"RunStatusResponse",
"RunSucceededEvent",
"RunSucceededEventData",
"utc_now",
]