Spaces:
Sleeping
Sleeping
File size: 604 Bytes
5ada319 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from typing import List, Dict, Any, Optional
from pydantic import BaseModel, Field
class DebugResult(BaseModel):
root_cause: str
solutions: List[Dict[str, Any]]
fix_instructions: str
confidence_score: float
agent_metrics: Dict[str, Any]
execution_time: float
class RankedSolution(BaseModel):
rank: int
title: str
description: str
steps: List[str]
code_changes: List[dict] = Field(default_factory=list)
confidence: float
sources: List[str] = Field(default_factory=list)
why_ranked_here: str
trade_offs: List[str] = Field(default_factory=list)
|