* feat: simple graph pipeline * feat: implement incremental graph generation * fix: various bug fixes * fix: upgrade weaviate-client --------- Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
18 lines
462 B
Python
18 lines
462 B
Python
from uuid import UUID, uuid4
|
|
from typing import Optional
|
|
from pydantic import BaseModel
|
|
from .models.Task import Task
|
|
|
|
class PipelineConfig(BaseModel):
|
|
batch_count: int = 10
|
|
description: Optional[str]
|
|
|
|
class Pipeline():
|
|
id: UUID = uuid4()
|
|
name: str
|
|
description: str
|
|
tasks: list[Task] = []
|
|
|
|
def __init__(self, name: str, pipeline_config: PipelineConfig):
|
|
self.name = name
|
|
self.description = pipeline_config.description
|