citationEdge / workflows /base_workflow.py
omkarkudalkar222's picture
Fresh deployment without history
0e38162
Raw
History Blame Contribute Delete
432 Bytes
from abc import ABC, abstractmethod
from typing import Any, Dict, List
from agents.base_agent import AgentContext, AgentResult
class BaseWorkflow(ABC):
"""Abstract base for all workflow execution strategies."""
name: str = "base"
@abstractmethod
async def execute(
self,
agents: List[Any],
ctx: AgentContext,
) -> List[AgentResult]:
"""Run agents and return their results."""