Android SDK
Android SDK Overview
Meet the QwryAI Android SDK, a Kotlin library that puts your agent inside an Android app
What is the QwryAI Android SDK?
The QwryAI Android SDK is a Kotlin library, built on coroutines, that connects your app to a QwryAI agent. It has no screens of its own; you draw the chat. It gives you:
- Streaming answers through
send, with handlers for each piece of text and each tool call - Client-side tools: your agent's Run client-side code actions run as Kotlin functions on the device
- User identity with a signed JWT, plus an automatic ID for each install
- Conversation history with cursor-based pages
- One exception type,
QwryException, with stable error codes - Ready-made state holders,
ConversationStateandConversationListState, that expose chats asStateFlows for Jetpack Compose or views
Requirements
Android 7.0 (API 24) or later. Kotlin coroutines come with the SDK; it has no other dependencies. See Installation & Quickstart for the full list and setup.
Rate limits
QwryAI allows each install 1,000 requests every 10 seconds for each agent. Past that, calls throw a QwryException with the code RATE_LIMIT_TOO_MANY_REQUESTS and isRateLimited == true. See Error Handling.
Next steps
Installation & Quickstart
Add the SDK to your app and send your first message.
Streaming
Show answers as they are written with send and its handlers.
Client-Side Tools
Run your agent's client-side actions as Kotlin functions.
Conversations & History
Continue, list and page through conversations.
Error Handling
QwryException, its codes and how to handle them.