@@ -34,6 +34,16 @@ def construct_query_operation(self, data):
3434 query_operation .server = server
3535 query_operation .path = self .path
3636 query_operation .tags = self .api_meta_data ["tags" ]
37+
38+ if "agent_type" in op :
39+ query_operation .agent_type = op ["agent_type" ]
40+ if "knowledge_level" in op :
41+ query_operation .knowledge_level = op ["knowledge_level" ]
42+ if "testExamples" in op :
43+ query_operation .testExamples = op ["testExamples" ]
44+ if "useTemplating" in op :
45+ query_operation .useTemplating = op ["useTemplating" ]
46+
3747 return query_operation
3848
3949 def remove_bio_link_prefix (self , _input ):
@@ -66,7 +76,6 @@ def construct_association(self, input, output, op):
6676 def construct_response_mapping (self , op ):
6777 if "responseMapping" in op :
6878 op ["response_mapping" ] = op ["responseMapping" ]
69-
7079 return {f"{ op ['predicate' ]} " : self .resolve_ref_if_provided (op .get ("response_mapping" ))}
7180
7281 def parse_individual_operation (self , op , method , path_params ):
@@ -81,18 +90,11 @@ def parse_individual_operation(self, op, method, path_params):
8190 "association" : association ,
8291 "response_mapping" : response_mapping ,
8392 "tags" : query_operation .tags ,
93+ "agent_type" : query_operation .agent_type ,
94+ "knowledge_level" : query_operation .knowledge_level ,
95+ "testExamples" : query_operation .testExamples ,
96+ "useTemplating" : query_operation .useTemplating ,
8497 }
85-
86- # Add additional fields to update_info if they exist in the operation
87- if "agent_type" in op :
88- update_info ["agent_type" ] = op ["agent_type" ]
89- if "knowledge_level" in op :
90- update_info ["knowledge_level" ] = op ["knowledge_level" ]
91- if "testExamples" in op :
92- update_info ["testExamples" ] = op ["testExamples" ]
93- if "useTemplating" in op :
94- update_info ["useTemplating" ] = op ["useTemplating" ]
95-
9698 res .append (update_info )
9799 return res
98100
0 commit comments