from __future__ import annotations

from typing import Protocol

from app.modules.agent.task_runtime.models import TaskRuntimeContext, WorkflowExecutionResult


class TaskWorkflow(Protocol):
    workflow_id: str

    def run(self, ctx: TaskRuntimeContext) -> WorkflowExecutionResult: ...
