init. project
This commit is contained in:
20
rag-web-ui/backend/app/services/testing_pipeline/base.py
Normal file
20
rag-web-ui/backend/app/services/testing_pipeline/base.py
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user