Skip to content

Commit bf3464e

Browse files
committed
fix function errors with list
1 parent 13f53bf commit bf3464e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/kernel_tools/marketing_tools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ async def create_marketing_campaign(
2121
async def analyze_market_trends(industry: str) -> str:
2222
return f"Market trends analyzed for the '{industry}' industry."
2323

24+
# ToDo: Seems to be a bug in SK when processing functions with list parameters
2425
@staticmethod
2526
@kernel_function(description="Generate social media posts for a campaign.")
26-
async def generate_social_posts(campaign_name: str, platforms: list) -> str:
27+
async def generate_social_posts(campaign_name: str, platforms: List[str]) -> str:
2728
platforms_str = ", ".join(platforms)
2829
return f"Social media posts for campaign '{campaign_name}' generated for platforms: {platforms_str}."
2930

@@ -253,10 +254,11 @@ async def manage_event_sponsorship(event_name: str, sponsor_name: str) -> str:
253254
async def optimize_conversion_funnel(stage: str) -> str:
254255
return f"Conversion funnel stage '{stage}' optimized."
255256

257+
# ToDo: Seems to be a bug in SK when processing functions with list parameters
256258
@staticmethod
257259
@kernel_function(description="Run an influencer marketing campaign.")
258260
async def run_influencer_campaign(
259-
campaign_name: str, influencers: list
261+
campaign_name: str, influencers: List[str]
260262
) -> str:
261263
influencers_str = ", ".join(influencers)
262264
return f"Influencer marketing campaign '{campaign_name}' run with influencers: {influencers_str}."

0 commit comments

Comments
 (0)