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.

488 B
Raw Blame
"""Private cancellation coordination types shared by schedulers and run stores."""

from datetime import datetime
from typing import ClassVar

from pydantic import BaseModel, ConfigDict


class RunCancellationIntent(BaseModel):
    """The first accepted request to cancel one running run."""

    reason: str | None = None
    message: str | None = None
    requested_at: datetime

    model_config: ClassVar[ConfigDict] = ConfigDict(extra="forbid")


__all__ = ["RunCancellationIntent"]