add base filesystem backend
This commit is contained in:
24
lang_agent/fs_bkends/base.py
Normal file
24
lang_agent/fs_bkends/base.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from dataclasses import dataclass, field, is_dataclass
|
||||
from typing import Any
|
||||
import tyro
|
||||
import os.path as osp
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class BaseFilesystemBackend(ABC):
|
||||
backend: Any
|
||||
|
||||
@abstractmethod
|
||||
def _build_backend(self):
|
||||
pass
|
||||
|
||||
def get_backend(self):
|
||||
return self.backend
|
||||
|
||||
def get_inf_inp(self):
|
||||
"""get inference input for deepagent"""
|
||||
return {}
|
||||
|
||||
def get_deepagent_params(self):
|
||||
"""extra params to pass into the creation of deepagents"""
|
||||
return {}
|
||||
Reference in New Issue
Block a user