mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
Initial Commit 🚀 🚀
This commit is contained in:
commit
4f2a629340
444 changed files with 76863 additions and 0 deletions
16
api/services/workflow/errors.py
Normal file
16
api/services/workflow/errors.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# api/services/workflow/errors.py
|
||||
from enum import Enum
|
||||
from typing import TypedDict
|
||||
|
||||
|
||||
class ItemKind(str, Enum):
|
||||
node = "node"
|
||||
edge = "edge"
|
||||
workflow = "workflow"
|
||||
|
||||
|
||||
class WorkflowError(TypedDict):
|
||||
kind: ItemKind # "node" | "edge"
|
||||
id: str | None # nodeId or edgeId
|
||||
field: str | None # “data.prompt”, “position.x”, … (optional)
|
||||
message: str # human-readable text
|
||||
Loading…
Add table
Add a link
Reference in a new issue