add optimal_way_to using dijkstra

This commit is contained in:
abnerhexu
2026-01-23 22:45:58 +08:00
parent 77264c172f
commit 5c500f1d11
6 changed files with 583 additions and 21 deletions

View File

@@ -86,6 +86,7 @@ Tips for you to finish task in the most efficient way:
5. If battery is below 30, find the nerest waypoint, go there and land, then charge to 100.
6. Reaching to a higher latitude can help you see targets, but do not exceed the drone's limit.
7. Cannot move from current status: DroneStatus.IDLE means you need to take off first then move.
8. If the start point is different with the current position of the drone, first go to the start point, then continue the left paths.
Begin!

View File

@@ -15,6 +15,6 @@ REMINDER - Action Input must be valid JSON:
- For multiple parameters: {{"drone_id": "drone-001", "altitude": 15.0}}
- Numbers WITHOUT quotes, strings WITH quotes
- We put your answer to langchain, so if you want to return {{ or }}, return double of the characters.
- When the task is done, output "Final Answer:\n[TASK DONE]"
- When the task is done, simply output "Final Answer:\n[TASK DONE]"
Please try again with proper JSON format."""