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

Method build

backend/app/models/model/provider.py:28–39  ·  view source on GitHub ↗
(cls, row: Dict, num_model_schemas: int, model_types: List[str])

Source from the content-addressed store, hash-verified

26
27 @classmethod
28 def build(cls, row: Dict, num_model_schemas: int, model_types: List[str]):
29 return cls(
30 provider_id=row["provider_id"],
31 credentials_schema=load_json_attr(row, "credentials_schema", {}),
32 name=row["name"],
33 description=row["description"],
34 icon_svg_url=row["icon_svg_url"],
35 num_model_schemas=num_model_schemas,
36 model_types=model_types,
37 resources=load_json_attr(row, "resources", {}),
38 updated_timestamp=row["updated_timestamp"],
39 )
40
41 def to_dict(self, lang: str):
42 from app.services.model import i18n_text

Callers

nothing calls this directly

Calls 1

load_json_attrFunction · 0.90

Tested by

no test coverage detected