barath19 commited on
Commit
82c2e50
·
1 Parent(s): 2860196

fix mcp tool name

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -530,7 +530,7 @@ def search_heatpump(
530
  article_number: str = "",
531
  heating_power_min: str = "",
532
  heating_power_max: str = "",
533
- type: str = ""
534
  ) -> str:
535
  """
536
  Search for specific heat pump by criteria.
@@ -541,7 +541,7 @@ def search_heatpump(
541
  article_number (str): Article number (optional)
542
  heating_power_min (str): Minimum heating power in kW (optional)
543
  heating_power_max (str): Maximum heating power in kW (optional)
544
- type (str): Heat pump type (e.g., 'Luft-Wasser') (optional)
545
 
546
  Returns:
547
  str: JSON array of matching heat pumps with their specifications
@@ -580,10 +580,10 @@ def search_heatpump(
580
  filtered_df['artikelnummer'].str.contains(article_number.strip(), case=False, na=False)
581
  ]
582
 
583
- if type.strip():
584
  if 'typ' in filtered_df.columns:
585
  filtered_df = filtered_df[
586
- filtered_df['typ'].str.contains(type.strip(), case=False, na=False)
587
  ]
588
 
589
  # Filter by heating power
 
530
  article_number: str = "",
531
  heating_power_min: str = "",
532
  heating_power_max: str = "",
533
+ heatpump_type: str = ""
534
  ) -> str:
535
  """
536
  Search for specific heat pump by criteria.
 
541
  article_number (str): Article number (optional)
542
  heating_power_min (str): Minimum heating power in kW (optional)
543
  heating_power_max (str): Maximum heating power in kW (optional)
544
+ heatpump_type (str): Heat pump type (e.g., 'Luft-Wasser') (optional)
545
 
546
  Returns:
547
  str: JSON array of matching heat pumps with their specifications
 
580
  filtered_df['artikelnummer'].str.contains(article_number.strip(), case=False, na=False)
581
  ]
582
 
583
+ if heatpump_type.strip():
584
  if 'typ' in filtered_df.columns:
585
  filtered_df = filtered_df[
586
+ filtered_df['typ'].str.contains(heatpump_type.strip(), case=False, na=False)
587
  ]
588
 
589
  # Filter by heating power