Isaac454 commited on
Commit
d776906
·
verified ·
1 Parent(s): 816f4f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,13 +48,13 @@ class WebhookPostTool(Tool):
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 = "string" # Must be one of SmolAgents authorized types
56
 
57
- def forward(self, webhook_url: str, payload: dict) -> str:
58
  try:
59
  response = requests.post(webhook_url, json=payload)
60
  return response.text
 
48
  "description": "The url to send the payload to"
49
  },
50
  "payload": {
51
+ "type": "string",
52
  "description": "The message/body nto send to the webhook"
53
  }
54
  }
55
  output_type = "string" # Must be one of SmolAgents authorized types
56
 
57
+ def forward(self, webhook_url: str, payload: str) -> str:
58
  try:
59
  response = requests.post(webhook_url, json=payload)
60
  return response.text