Underground-Digital/Workflow-Engine
0
1from collections.abc import Mapping2from typing import Any3 4from pydantic import BaseModel, Field5 6from core.app.entities.app_invoke_entities import InvokeFrom7from models.enums import UserFrom8from models.workflow import WorkflowType9 10 11class GraphInitParams(BaseModel):12 # init params13 tenant_id: str = Field(..., description="tenant / workspace id")14 app_id: str = Field(..., description="app id")15 workflow_type: WorkflowType = Field(..., description="workflow type")16 workflow_id: str = Field(..., description="workflow id")17 graph_config: Mapping[str, Any] = Field(..., description="graph config")18 user_id: str = Field(..., description="user id")19 user_from: UserFrom = Field(..., description="user from, account or end-user")20 invoke_from: InvokeFrom = Field(..., description="invoke from, service-api, web-app, explore or debugger")21 call_depth: int = Field(..., description="call depth")22 