Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ class WebhookPostTool(Tool):
|
|
| 49 |
},
|
| 50 |
"payload": {
|
| 51 |
"type": "string",
|
| 52 |
-
"description": "The message/body
|
| 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 |
|