Lurosm commited on
Commit
8eb81a2
·
verified ·
1 Parent(s): 053a6eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -48,7 +48,18 @@ class PDOKLocationInfo(BaseModel):
48
 
49
  @tool
50
  def pdok_location_info(postal_code: Optional[str] = None, house_number: Optional[str] = None, street_name: Optional[str] = None, city: Optional[str] = None) -> Union[PDOKLocationInfo, str]:
51
- """[Original docstring remains the same]"""
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  debug_info = []
54
  debug_info.append(f"Input values:\n"
 
48
 
49
  @tool
50
  def pdok_location_info(postal_code: Optional[str] = None, house_number: Optional[str] = None, street_name: Optional[str] = None, city: Optional[str] = None) -> Union[PDOKLocationInfo, str]:
51
+ """Provides information about a Dutch address or postal code. The combinations of postalcode and housenumber are vallid input or streetname, housenumber and city. Don't attempt to fill fields if you missing input, ask the user.
52
+
53
+ Args:
54
+ postal_code: Postal code in the format '1234 AA'.
55
+ house_number: House number of the address.
56
+ street_name: Name of the street.
57
+ city: Name of the city.
58
+
59
+ Returns:
60
+ Union[PDOKLocationInfo, str]: Either a PDOKLocationInfo object containing the location information,
61
+ or a string containing error and debug information if something goes wrong.
62
+ """
63
 
64
  debug_info = []
65
  debug_info.append(f"Input values:\n"