Spaces:
Running
Running
File size: 432 Bytes
0e38162 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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."""
|