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

Method get_data_source_instance

app/data_source/api/context.py:37–42  ·  view source on GitHub ↗
(cls, data_source_id: int)

Source from the content-addressed store, hash-verified

35
36 @classmethod
37 def get_data_source_instance(cls, data_source_id: int) -> BaseDataSource:
38 if not cls._initialized:
39 cls.init()
40 cls._initialized = True
41
42 return cls._data_source_cache[data_source_id].instance
43
44 @classmethod
45 def get_data_source_class(cls, data_source_name: str) -> BaseDataSource:

Callers 2

runMethod · 0.80
_check_for_new_documentsFunction · 0.80

Calls 1

initMethod · 0.80

Tested by

no test coverage detected