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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -49,7 +49,7 @@ class WebhookPostTool(Tool):
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
@@ -115,6 +115,9 @@ class WeatherTool(Tool):
115
  # --- Initialize LLM Model ---
116
  model = LiteLLMModel(
117
  model_id="huggingface/google/gemma-2-2b-it",
 
 
 
118
  hf_token=HF_TOKEN
119
  )
120
 
 
49
  },
50
  "payload": {
51
  "type": "string",
52
+ "description": "The message/body to send to the webhook"
53
  }
54
  }
55
  output_type = "string" # Must be one of SmolAgents authorized types
 
115
  # --- Initialize LLM Model ---
116
  model = LiteLLMModel(
117
  model_id="huggingface/google/gemma-2-2b-it",
118
+ System_Prompt = """
119
+ You can send JSON payloads to external webhook URLs using the webhook_post tool. Use this tool when you need to POST structured data to a webhook and return the raw text response. Handle errors gracefully and report failures clearly.
120
+ """
121
  hf_token=HF_TOKEN
122
  )
123