trinity.explorer.api.service module#

class trinity.explorer.api.service.ExplorerService(explorer: Explorer, listen_address: str = 'localhost', port: int = 8010)[source]#

Bases: object

__init__(explorer: Explorer, listen_address: str = 'localhost', port: int = 8010)[source]#
async serve()[source]#
async model_weights_sync_loop()[source]#
set_latest_model_version(version: int) None[source]#
async allocate_model(increase_count: bool = True) str[source]#
collect_metrics() Dict[source]#
async check_requiring_sync_models()[source]#
async record_experience(response)[source]#
async get_all_experiences() List[source]#
async shutdown()[source]#