mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
add updated_at to sync workflow api
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
from abc import ABC
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class BaseNodeData(ABC, BaseModel):
|
||||
pass
|
||||
type: str
|
||||
|
||||
title: str
|
||||
desc: Optional[str] = None
|
||||
|
||||
16
api/core/workflow/entities/workflow_entities.py
Normal file
16
api/core/workflow/entities/workflow_entities.py
Normal file
@ -0,0 +1,16 @@
|
||||
from decimal import Decimal
|
||||
|
||||
from core.workflow.entities.variable_pool import VariablePool
|
||||
from models.workflow import WorkflowNodeExecution, WorkflowRun
|
||||
|
||||
|
||||
class WorkflowRunState:
|
||||
workflow_run: WorkflowRun
|
||||
start_at: float
|
||||
variable_pool: VariablePool
|
||||
|
||||
total_tokens: int = 0
|
||||
total_price: Decimal = Decimal(0)
|
||||
currency: str = "USD"
|
||||
|
||||
workflow_node_executions: list[WorkflowNodeExecution] = []
|
||||
Reference in New Issue
Block a user