Isaac454 commited on
Commit
ddb4b71
·
verified ·
1 Parent(s): a93662f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -42,6 +42,16 @@ class LoadCsvTool(Tool):
42
  class WebhookPostTool(Tool):
43
  name = "webhook_post"
44
  description = "Send a JSON payload to a webhook URL and return the response as text."
 
 
 
 
 
 
 
 
 
 
45
  output_type = str # Must be one of SmolAgents authorized types
46
 
47
  def forward(self, webhook_url: str, payload: dict) -> str:
 
42
  class WebhookPostTool(Tool):
43
  name = "webhook_post"
44
  description = "Send a JSON payload to a webhook URL and return the response as text."
45
+ input = {
46
+ "webhook_url": {
47
+ "type": "string",
48
+ "description": "The url to send the payload to"
49
+ },
50
+ "payload": {
51
+ "type": "dictionary",
52
+ "description": "The message/body nto send to the webhook"
53
+ }
54
+ }
55
  output_type = str # Must be one of SmolAgents authorized types
56
 
57
  def forward(self, webhook_url: str, payload: dict) -> str: