File size: 616 Bytes
5ada319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from abc import ABC, abstractmethod
from typing import Dict, Any, Optional
from core.models import DebugResult

class DebugBackend(ABC):
    @abstractmethod
    async def analyze(self, context: Dict[str, Any]) -> DebugResult:
        pass

class LocalBackend(DebugBackend):
    def __init__(self):
        from core.orchestrator import DebugOrchestrator
        self.orchestrator = DebugOrchestrator()
        
    async def analyze(self, context: Dict[str, Any]) -> DebugResult:
        return await self.orchestrator.orchestrate_debug(
            error_context=context,
            stream_callback=None
        )