delete eval / scoring / scoring_functions api

This commit is contained in:
Xi Yan 2025-03-18 21:32:56 -07:00
parent 08c0c5505e
commit a475d72155
11 changed files with 71 additions and 451 deletions

View file

@ -39,14 +39,6 @@ def builtin_automatically_routed_apis() -> List[AutoRoutedApiInfo]:
routing_table_api=Api.datasets,
router_api=Api.datasetio,
),
AutoRoutedApiInfo(
routing_table_api=Api.scoring_functions,
router_api=Api.scoring,
),
AutoRoutedApiInfo(
routing_table_api=Api.benchmarks,
router_api=Api.eval,
),
AutoRoutedApiInfo(
routing_table_api=Api.tool_groups,
router_api=Api.tool_runtime,
@ -55,8 +47,14 @@ def builtin_automatically_routed_apis() -> List[AutoRoutedApiInfo]:
def providable_apis() -> List[Api]:
routing_table_apis = {x.routing_table_api for x in builtin_automatically_routed_apis()}
return [api for api in Api if api not in routing_table_apis and api != Api.inspect and api != Api.providers]
routing_table_apis = {
x.routing_table_api for x in builtin_automatically_routed_apis()
}
return [
api
for api in Api
if api not in routing_table_apis and api != Api.inspect and api != Api.providers
]
def get_provider_registry() -> Dict[Api, Dict[str, ProviderSpec]]: