Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

[AI Tool Function Request]: google_maps_navigation #30

Open
Yubo-Shao opened this issue Oct 18, 2024 · 0 comments · May be fixed by #31
Open

[AI Tool Function Request]: google_maps_navigation #30

Yubo-Shao opened this issue Oct 18, 2024 · 0 comments · May be fixed by #31
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Yubo-Shao
Copy link
Contributor

Description:
We need to implement the AI tool function {{ google_maps_navigation }} which utilizes the google maps API. Given the longitude and latitude of the start and destination, the navigation full path should be returned with the start and finish of each section of the journey.

JSON Definition:

{
        "type": "function",
        "function": {
            "name": "google_maps_navigation",
            "description": "Utilizes the Google Maps API to return the full navigation path given the longitude and latitude of the start and destination points.",
            "parameters": {
                "type": "object",
                "properties": {
                    "start_longitude": {
                        "type": "number",
                        "description": "The longitude of the starting point."
                    },
                    "start_latitude": {
                        "type": "number",
                        "description": "The latitude of the starting point."
                    },
                    "destination_longitude": {
                        "type": "number",
                        "description": "The longitude of the destination point."
                    },
                    "destination_latitude": {
                        "type": "number",
                        "description": "The latitude of the destination point."
                    }
                },
                "required": [
                    "start_longitude",
                    "start_latitude",
                    "destination_longitude",
                    "destination_latitude"
                ]
            }
        }
    }

Implementation Notes:

  • The function should interact with Google Maps API as needed to achieve the expected result.
  • Ensure proper error handling, logging, and response formatting.
@Yubo-Shao Yubo-Shao added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 18, 2024
@Yubo-Shao Yubo-Shao linked a pull request Oct 18, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants