LLMBB-Agent / schema.py
vlff李飞飞
add data from backblaze
b53a832
raw
history blame contribute delete
700 Bytes
from pydantic import BaseModel
class Record(BaseModel):
url: str
time: str
type: str
raw: list
extract: str
access_token: str
topic: str
checked: bool
session: list
def to_dict(self) -> dict:
return {
'url': self.url,
'time': self.time,
'type': self.type,
'raw': self.raw,
'extract': self.extract,
'access_token': self.access_token,
'topic': self.topic,
'checked': self.checked,
'session': self.session
}
class PathConfig(BaseModel):
work_space_root: str
cache_root: str
download_root: str
code_interpreter_ws: str