refactor: Remove unused methods and abstract class from BaseTracer
This commit is contained in:
parent
3ba8a19545
commit
d7008f7662
1 changed files with 2 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue