Pipelinen parannuksia building blockeilla

This commit is contained in:
Jaakko Vanhala
2026-04-12 18:48:14 +03:00
parent c1a5f8aff5
commit b2ee8b9031
175 changed files with 13311 additions and 237 deletions

View File

@@ -0,0 +1,93 @@
"""REST API käyttäjähallinnalle SQLite-tietokannalla
CrewAI crew — generated by Kipinä Agentic Studio.
Run: crewai run
"""
from crewai import Agent, Crew, Process, Task
from crewai.project import CrewBase, agent, crew, task
@CrewBase
class ProjectCrew:
"""REST API käyttäjähallinnalle SQLite-tietokannalla"""
agents_config = "agents.yaml"
tasks_config = "tasks.yaml"
@agent
def client(self) -> Agent:
return Agent(config=self.agents_config["client"])
@agent
def manager(self) -> Agent:
return Agent(config=self.agents_config["manager"])
@agent
def data(self) -> Agent:
return Agent(config=self.agents_config["data"])
@agent
def coder(self) -> Agent:
return Agent(config=self.agents_config["coder"])
@agent
def qa(self) -> Agent:
return Agent(config=self.agents_config["qa"])
@agent
def tester(self) -> Agent:
return Agent(config=self.agents_config["tester"])
@agent
def observer(self) -> Agent:
return Agent(config=self.agents_config["observer"])
@task
def step_0_requirements(self) -> Task:
return Task(config=self.tasks_config["step_0_requirements"])
@task
def step_1_json_speksi(self) -> Task:
return Task(config=self.tasks_config["step_1_json_speksi"])
@task
def step_2_models_py(self) -> Task:
return Task(config=self.tasks_config["step_2_models_py"])
@task
def step_3_schemas_py(self) -> Task:
return Task(config=self.tasks_config["step_3_schemas_py"])
@task
def step_4_main_py(self) -> Task:
return Task(config=self.tasks_config["step_4_main_py"])
@task
def step_5_test_main_py(self) -> Task:
return Task(config=self.tasks_config["step_5_test_main_py"])
@task
def step_6_pyproject_toml(self) -> Task:
return Task(config=self.tasks_config["step_6_pyproject_toml"])
@task
def step_7_dockerfile(self) -> Task:
return Task(config=self.tasks_config["step_7_dockerfile"])
@task
def step_8_validointi(self) -> Task:
return Task(config=self.tasks_config["step_8_validointi"])
@task
def step_9_readme_md(self) -> Task:
return Task(config=self.tasks_config["step_9_readme_md"])
@crew
def crew(self) -> Crew:
return Crew(
agents=self.agents,
tasks=self.tasks,
process=Process.sequential,
verbose=True,
)