jarguello76 commited on
Commit
6bc658e
·
verified ·
1 Parent(s): c03e89f

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +3 -1
tools.py CHANGED
@@ -382,7 +382,8 @@ class APIIntegrationTool(Tool):
382
  },
383
  "data": {
384
  "type": "string",
385
- "description": "The data to send with the request."
 
386
  }
387
  }
388
  output_type = "string"
@@ -400,3 +401,4 @@ class APIIntegrationTool(Tool):
400
  return f"API response: {response.json()}"
401
  except Exception as e:
402
  return f"Error interacting with API: {str(e)}"
 
 
382
  },
383
  "data": {
384
  "type": "string",
385
+ "description": "The data to send with the request.",
386
+ "nullable": True # Add this line to specify that 'data' is nullable
387
  }
388
  }
389
  output_type = "string"
 
401
  return f"API response: {response.json()}"
402
  except Exception as e:
403
  return f"Error interacting with API: {str(e)}"
404
+