MCPcopy Create free account
hub / github.com/GerevAI/gerev / BasicDocument

Class BasicDocument

app/data_source/api/basic_document.py:45–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44@dataclass
45class BasicDocument:
46 id: Union[int, str] # row id in database
47 data_source_id: int # data source id in database
48 type: DocumentType
49 title: str
50 content: str
51 timestamp: datetime
52 author: str
53 author_image_url: str
54 location: str
55 url: str
56 status: str = None
57 is_active: bool = None
58 file_type: FileType = None
59 children: List['BasicDocument'] = None
60
61 @property
62 def id_in_data_source(self):
63 return str(self.data_source_id) + '_' + str(self.id)
64

Callers 8

_feed_docMethod · 0.90
_feed_pageMethod · 0.90
_feed_fileMethod · 0.90
feed_issueMethod · 0.90
_feed_conversationMethod · 0.90
_feed_channelMethod · 0.90
_feed_channelMethod · 0.90
_feed_issueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected