@@ -42,58 +42,75 @@ def delete_integration_api(self, api_name:str, integration_name:str):
4242 """Delete a specific integration api for a given integration"""
4343 pass
4444
45+ @abstractmethod
4546 def delete_integration (self , integration_name :str ):
4647 """Delete an integration"""
4748 pass
4849
50+ @abstractmethod
4951 def get_integration_api (self , api_name :str , integration_name :str ) -> IntegrationApi :
5052 pass
5153
54+ @abstractmethod
5255 def get_integration_apis (self , integration_name :str ) -> List [IntegrationApi ]:
5356 pass
5457
58+ @abstractmethod
5559 def get_integration (self , integration_name :str ) -> Integration :
5660 pass
5761
62+ @abstractmethod
5863 def get_integrations (self ) -> List [Integration ]:
5964 """Returns the list of all the available integrations"""
6065 pass
6166
67+ @abstractmethod
6268 def get_prompts_with_integration (self , ai_integration :str , model_name :str ) -> List [PromptTemplate ]:
6369 pass
6470
71+ @abstractmethod
6572 def get_token_usage_for_integration (self , name , integration_name ) -> int :
6673 pass
6774
75+ @abstractmethod
6876 def get_token_usage_for_integration_provider (self , name ) -> dict :
6977 pass
7078
79+ @abstractmethod
7180 def register_token_usage (self , body , name , integration_name ):
7281 pass
7382
83+ @abstractmethod
7484 def save_integration_api (self , integration_name , api_name , api_details : IntegrationApiUpdate ):
7585 pass
7686
87+ @abstractmethod
7788 def save_integration (self , integration_name , integration_details : IntegrationUpdate ):
7889 pass
7990
8091 # Tags
8192
93+ @abstractmethod
8294 def delete_tag_for_integration (self , body , tag_name , integration_name ):
8395 """Delete an integration"""
8496 pass
8597
98+ @abstractmethod
8699 def delete_tag_for_integration_provider (self , body , name ):
87100 pass
88101
102+ @abstractmethod
89103 def put_tag_for_integration (self , body , name , integration_name ):
90104 pass
91105
106+ @abstractmethod
92107 def put_tag_for_integration_provider (self , body , name ):
93108 pass
94109
110+ @abstractmethod
95111 def get_tags_for_integration (self , name , integration_name ):
96112 pass
97113
114+ @abstractmethod
98115 def get_tags_for_integration_provider (self , name ):
99116 pass
0 commit comments