feat: Add OpenWeatherMap weather tool + skill#66
Closed
cemsid wants to merge 2 commits into
Closed
Conversation
Contributor
|
see contributing: https://github.com/NousResearch/hermes-agent/blob/main/CONTRIBUTING.md looks like it should be on a skillshub - feel free to share it with the Nous Discord though when its on one! |
sudo-yf
pushed a commit
to sudo-yf/hermes-agent
that referenced
this pull request
Apr 5, 2026
…usResearch#67) The webui stores display-only fields on messages (attachments, timestamp, _ts) for UI rendering. These leaked into the conversation_history passed to AIAgent.run_conversation(). Most providers ignore unknown fields, but Z.AI/GLM tries to deserialize 'attachments' as its native ChatAttachments type, causing HTTP 400 on every subsequent message after an image upload. Fix: _sanitize_messages_for_api() creates a clean copy with only API-standard keys (role, content, tool_calls, tool_call_id, name, refusal) before passing to run_conversation(). Applied to both the streaming path (streaming.py) and non-streaming path (routes.py). Closes NousResearch#66 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR adds
Full OpenWeatherMap integration for Hermes Agent — 3 tools covering current conditions, multi-day forecasts, and weather alerts with air quality.
Tools added:
weather_current— Current weather conditionsweather_forecast— Multi-day forecast up to 5 daysweather_alerts— Active weather alerts + Air Quality Index (AQI)Setup:
Add
OPENWEATHERMAP_API_KEY=your_keyto~/.hermes/.envFree API key: https://openweathermap.org/api
Files added:
tools/weather.pyskills/weather/SKILL.mdtests/test_weather.pyDEV ROLE submission — OpenWeatherMap integration, all tests passing ✅
Discord: cemsid.esedov