mirror of
https://github.com/langgenius/dify.git
synced 2026-04-21 06:46:30 +08:00
23 lines
519 B
Python
23 lines
519 B
Python
from collections.abc import Mapping
|
|
from typing import Any, Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class DatasourceNodeRunApiEntity(BaseModel):
|
|
pipeline_id: str
|
|
node_id: str
|
|
inputs: Mapping[str, Any]
|
|
datasource_type: str
|
|
credential_id: Optional[str] = None
|
|
is_published: bool
|
|
|
|
|
|
class PipelineRunApiEntity(BaseModel):
|
|
inputs: Mapping[str, Any]
|
|
datasource_type: str
|
|
datasource_info_list: list[Mapping[str, Any]]
|
|
start_node_id: str
|
|
is_published: bool
|
|
response_mode: str
|