Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add weather tool to fetch weather data #1

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Add weather tool to fetch weather data #1

merged 1 commit into from
Oct 24, 2024

Conversation

flozi00
Copy link
Owner

@flozi00 flozi00 commented Oct 24, 2024

Add a new tool to fetch weather data using the Open-Meteo API.

  • New Tool Implementation

    • Create weather.ts to define the weather tool with inputs and call method to fetch weather data.
    • Implement call method to fetch coordinates and weather data using utility functions.
  • Tool Integration

    • Import and add the weather tool to the list of tools in index.ts.
  • Output Handling

    • Add a new output component for weather data in outputs.ts.
  • Utility Functions

    • Add utility functions in utils.ts to fetch weather data and coordinates from the Open-Meteo API.

For more details, open the Copilot Workspace session.

Add a new tool to fetch weather data using the Open-Meteo API.

* **New Tool Implementation**
  - Create `weather.ts` to define the weather tool with inputs and call method to fetch weather data.
  - Implement `call` method to fetch coordinates and weather data using utility functions.

* **Tool Integration**
  - Import and add the weather tool to the list of tools in `index.ts`.

* **Output Handling**
  - Add a new output component for weather data in `outputs.ts`.

* **Utility Functions**
  - Add utility functions in `utils.ts` to fetch weather data and coordinates from the Open-Meteo API.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/flozi00/chat-ui?shareId=XXXX-XXXX-XXXX-XXXX).
@flozi00 flozi00 merged commit 6290866 into main Oct 24, 2024
@flozi00 flozi00 deleted the add-weather-tool branch October 24, 2024 09:09
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