srilakshu012456 commited on
Commit
fdab06a
·
verified ·
1 Parent(s): 4b4e08b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -228,10 +228,10 @@ def _try_wms_tool(user_text: str) -> dict | None:
228
 
229
  # Call underlying function per signature
230
  if tool_name in ("get_inventory_holds", "get_location_status"):
231
- raw = cfg"function"
232
  else:
233
  target = args.get(cfg["id_param"])
234
- raw = cfg"function"
235
 
236
  # Error path -> keep your response shape
237
  if raw.get("error"):
 
228
 
229
  # Call underlying function per signature
230
  if tool_name in ("get_inventory_holds", "get_location_status"):
231
+ raw = cfg["function"]
232
  else:
233
  target = args.get(cfg["id_param"])
234
+ raw = cfg["function"]
235
 
236
  # Error path -> keep your response shape
237
  if raw.get("error"):