@@ -23,7 +23,7 @@ async def analyze_market_trends(industry: str) -> str:
2323
2424 @staticmethod
2525 @kernel_function (description = "Generate social media posts for a campaign." )
26- async def generate_social_media_posts (campaign_name : str , platforms : list ) -> str :
26+ async def generate_social_posts (campaign_name : str , platforms : list ) -> str :
2727 platforms_str = ", " .join (platforms )
2828 return f"Social media posts for campaign '{ campaign_name } ' generated for platforms: { platforms_str } ."
2929
@@ -44,12 +44,6 @@ async def conduct_customer_survey(survey_topic: str, target_group: str) -> str:
4444 async def perform_competitor_analysis (competitor_name : str ) -> str :
4545 return f"Competitor analysis performed on '{ competitor_name } '."
4646
47- @staticmethod
48- @kernel_function (description = "Optimize SEO strategy using specified keywords." )
49- async def optimize_seo_strategy (keywords : list ) -> str :
50- keywords_str = ", " .join (keywords )
51- return f"SEO strategy optimized with keywords: { keywords_str } ."
52-
5347 @staticmethod
5448 @kernel_function (description = "Schedule a marketing event." )
5549 async def schedule_marketing_event (
@@ -211,7 +205,7 @@ async def organize_trade_show(booth_number: str, event_name: str) -> str:
211205
212206 @staticmethod
213207 @kernel_function (description = "Manage a customer retention program." )
214- async def manage_customer_retention_program (program_name : str ) -> str :
208+ async def manage_retention_program (program_name : str ) -> str :
215209 return f"Customer retention program '{ program_name } ' managed."
216210
217211 @staticmethod
@@ -261,7 +255,7 @@ async def optimize_conversion_funnel(stage: str) -> str:
261255
262256 @staticmethod
263257 @kernel_function (description = "Run an influencer marketing campaign." )
264- async def run_influencer_marketing_campaign (
258+ async def run_influencer_campaign (
265259 campaign_name : str , influencers : list
266260 ) -> str :
267261 influencers_str = ", " .join (influencers )
@@ -280,15 +274,15 @@ async def develop_customer_personas(segment_name: str) -> str:
280274 # This function does NOT have the kernel_function annotation
281275 # because it's meant for introspection rather than being exposed as a tool
282276 @staticmethod
283- def get_all_kernel_functions () -> List [ Callable ]:
277+ def get_all_kernel_functions () -> dict [ str , Callable ]:
284278 """
285279 Returns a dictionary of all methods in this class that have the @kernel_function annotation.
286280 This function itself is not annotated with @kernel_function.
287281
288282 Returns:
289283 Dict[str, Callable]: Dictionary with function names as keys and function objects as values
290284 """
291- kernel_functions = []
285+ kernel_functions = {}
292286
293287 # Get all class methods
294288 for name , method in inspect .getmembers (
@@ -304,6 +298,6 @@ def get_all_kernel_functions() -> List[Callable]:
304298 if hasattr (method , "__kernel_function__" ) or "kernel_function" in str (
305299 method_attrs
306300 ):
307- kernel_functions . append ( method )
301+ kernel_functions [ name ] = method
308302
309303 return kernel_functions
0 commit comments