Skip to content

Add airquality tool#64

Merged
nicky-ru merged 2 commits intomainfrom
add-airquality-tool
Mar 28, 2025
Merged

Add airquality tool#64
nicky-ru merged 2 commits intomainfrom
add-airquality-tool

Conversation

@nicky-ru
Copy link
Contributor

Add

  • Air quality tool

Updated

  • API key validation

- Added mandatory checks for CMC_API_KEY and NUBILA_API_KEY environment variables, throwing errors if not set.
- Updated unit tests to verify error handling when API keys are missing, ensuring robust initialization for both tools.
- Refactored test setup to restore original environment variables after each test for consistency.
- Introduced AirQualityTool for fetching air quality data based on GPS coordinates, utilizing the AirVisual API.
- Added new ToolName enum entry for AIR_QUALITY.
- Registered AirQualityTool in availableTools and updated specialtyDomains to include air quality as a domain.
- Created comprehensive unit tests for AirQualityTool, ensuring robust functionality and error handling.
@nicky-ru nicky-ru merged commit 2f60588 into main Mar 28, 2025
2 checks passed
@nicky-ru nicky-ru deleted the add-airquality-tool branch March 28, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant