From d7008f76627bfac14416ec629f698d85e64de711 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 27 Jun 2024 09:22:30 -0300 Subject: [PATCH] refactor: Remove unused methods and abstract class from BaseTracer --- .../base/langflow/services/tracing/base.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/backend/base/langflow/services/tracing/base.py b/src/backend/base/langflow/services/tracing/base.py index 2a5d609c9..c96388227 100644 --- a/src/backend/base/langflow/services/tracing/base.py +++ b/src/backend/base/langflow/services/tracing/base.py @@ -1,29 +1,16 @@ from abc import ABC, abstractmethod -from typing import Dict, Any +from typing import Any, Dict -class BaseTrace(ABC): - +class BaseTracer(ABC): @abstractmethod def ready(self): raise NotImplementedError - @abstractmethod - def setup_langsmith(self): - raise NotImplementedError - @abstractmethod def add_trace(self, trace_name: str, trace_type: str, inputs: Dict[str, Any], metadata: Dict[str, Any] = None): raise NotImplementedError - @abstractmethod - def _convert_to_langchain_types(self, io_dict: Dict[str, Any]): - raise NotImplementedError - - @abstractmethod - def _convert_to_langchain_type(self, value): - raise NotImplementedError - @abstractmethod def end_trace(self, trace_name: str, outputs: Dict[str, Any] = None, error: str = None): raise NotImplementedError