(cls, data: Dict)
| 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 |
nothing calls this directly
no test coverage detected