MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / api_list_model_schemas

Function api_list_model_schemas

backend/app/routes/model/model_schema.py:59–75  ·  view source on GitHub ↗
(
    request: Request,
    data: ModelSchemaListRequest = Depends(),
    auth_info: Dict = Depends(auth_info_required),
)

Source from the content-addressed store, hash-verified

57 tags=["Model"],
58)
59async def api_list_model_schemas(
60 request: Request,
61 data: ModelSchemaListRequest = Depends(),
62 auth_info: Dict = Depends(auth_info_required),
63):
64 model_schemas, total, has_more = await list_model_schemas(
65 limit=data.limit,
66 offset=data.offset,
67 provider_id=data.provider_id,
68 type=data.type,
69 )
70 return BaseListResponse(
71 data=[model_schema.to_dict(lang="en") for model_schema in model_schemas],
72 fetched_count=len(model_schemas),
73 total_count=total,
74 has_more=has_more,
75 )
76
77
78@router.get(

Callers

nothing calls this directly

Calls 3

BaseListResponseClass · 0.90
list_model_schemasFunction · 0.50
to_dictMethod · 0.45

Tested by

no test coverage detected