MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / build

Method build

backend/app/models/tool/plugin.py:85–100  ·  view source on GitHub ↗
(cls, data: Dict)

Source from the content-addressed store, hash-verified

83
84 @classmethod
85 def build(cls, data: Dict):
86 function_def = transform_input_schema(
87 data["bundle_id"],
88 data["plugin_id"],
89 data["description"],
90 data["input_schema"],
91 )
92 return cls(
93 bundle_id=data["bundle_id"],
94 plugin_id=data["plugin_id"],
95 name=data["name"] or "",
96 description=data["description"],
97 input_schema=data["input_schema"],
98 output_schema=data["output_schema"],
99 function_def=function_def,
100 )
101
102 def to_dict(self, lang: str):
103 from app.services.tool import i18n_text

Callers

nothing calls this directly

Calls 1

transform_input_schemaFunction · 0.85

Tested by

no test coverage detected