AMap LLM Agent SDK Skills

Integrate AMap LLM Agent SDK for natural-language queries and navigation control in Android apps.

54|1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/amap-demo/amap-sdk-skills --skill amap-llm-agent-sdk-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AMap LLM Agent SDK Skills
Source: https://github.com/amap-demo/amap-sdk-skills/tree/main/android-llm-agent
Command: npx skills add https://github.com/amap-demo/amap-sdk-skills --skill amap-llm-agent-sdk-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of integrating the AMap Android LLM Agent SDK into an app correctly, including initialization order, natural-language query handling, navigation control, and LinkClient-based AMap APP interoperability.

Core Features & Use Cases

  • Natural language query integration: Generate and wire code to send voice/text queries (e.g., POI search, route planning) and receive structured results via callbacks.
  • Navigation and lifecycle correctness: Provide guidance and example code patterns for AMapNaviView setup, lifecycle management, and resource cleanup to prevent leaks and broken navigation flows.
  • LinkClient APP interworking: Set up LinkClient callbacks and switching behavior between executing commands locally and delegating to the AMap APP, including reconnection and UI-thread handling.
  • Use case: Build an Android “AI navigation assistant” that can interpret requests like “Navigate to Beijing Capital Airport”, return route/POI outcomes, and start/stop navigation safely with transport mode switching support.

Quick Start

Ask the AI to generate an Android integration scaffold for AMap LLM Agent SDK, including Application/Activity initialization, AMapNaviView setup, AgentClient callback wiring, and a sample natural-language query workflow.

Frequently Asked Questions about AMap LLM Agent SDK Skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate AMap LLM Agent SDK into an Android app for natural language navigation?

To integrate AMap LLM Agent SDK, configure AMapApi and AMapContext, initialize AMapNaviView with lifecycle hooks, wire AgentClient callbacks for ActionType-specific results, and set up LinkClient for AMap APP interoperability.

How do I handle multi-turn dialog state and POI search results with AMap LLM Agent?

Handle multi-turn dialog state and POI search by wiring AgentClient callbacks to receive structured results from natural-language queries, enabling your app to process route planning and location outcomes dynamically.

What is the correct way to manage AMapNaviView lifecycle and prevent resource leaks in Android?

AMapNaviView lifecycle management requires correct lifecycle hook integration and resource cleanup to prevent leaks and broken navigation flows, ensuring safe start/stop navigation with transport mode switching support.

Does LinkClient support reconnection and thread-safe UI updates when switching to AMap APP?

LinkClient supports reconnection and thread-safe UI updates by managing connection logic and switching behavior between executing commands locally and delegating to the AMap APP, ensuring stable interworking.

What prerequisites do I need to build an Android AI navigation assistant using AMap LLM?

Building an Android AI navigation assistant requires AMapApi and AMapContext configuration, AMapNaviView setup, AgentClient callback wiring, and LinkClient connection logic to interpret requests and return route outcomes.

Why does my AMap navigation flow break when switching transport modes during an active session?

AMap navigation flows break during transport mode switching due to incorrect AMapNaviView lifecycle hook integration or incomplete resource cleanup, requiring proper lifecycle management to prevent broken navigation flows.