We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 007a0bf commit 5844ff0Copy full SHA for 5844ff0
mindsdb_sdk/skills.py
@@ -51,8 +51,8 @@ def __repr__(self):
51
@classmethod
52
def from_json(cls, json: dict):
53
if json['type'] == 'sql':
54
- return SQLSkill.from_json(json)
55
- raise NotImplementedError(f'Unknown skill type: {json["type"]}')
+ return SQLSkill(json['name'], json['params']['tables'], json['params']['database'])
+ return Skill(json['name'], json['type'], json['params'])
56
57
58
class SQLSkill(Skill):
0 commit comments