Skip to content

Commit

Permalink
Merge pull request #269 from SmartAPI/update-mkg-parser
Browse files Browse the repository at this point in the history
MetaKG Parser Update
  • Loading branch information
NikkiBytes authored Oct 10, 2024
2 parents 754292c + 2dfc3dd commit 47da3ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/utils/metakg/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ def parse_individual_operation(self, op, method, path_params):
"response_mapping": response_mapping,
"tags": query_operation.tags,
}

# Add additional fields to update_info if they exist in the operation
if "agent_type" in op:
update_info["agent_type"] = op["agent_type"]
if "knowledge_level" in op:
update_info["knowledge_level"] = op["knowledge_level"]
if "testExamples" in op:
update_info["testExamples"] = op["testExamples"]
if "useTemplating" in op:
update_info["useTemplating"] = op["useTemplating"]

res.append(update_info)
return res

Expand Down

0 comments on commit 47da3ad

Please sign in to comment.