Files
rag_agent/rag-web-ui/backend/app/services/testing_pipeline/base.py
2026-04-13 11:34:23 +08:00

21 lines
425 B
Python

from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Any, Dict
@dataclass
class ToolExecutionResult:
context: Dict[str, Any]
output_summary: str
fallback_used: bool = False
class TestingTool(ABC):
name: str
@abstractmethod
def execute(self, context: Dict[str, Any]) -> ToolExecutionResult:
raise NotImplementedError