This is a demo to use LLM like chatGPT to autonomously select and start the intent based on user query.
Let GPT/chatGPT choose and start the real android intent!
- MVVM
- Jetpack Compose
- Room
- Koin
- google-play-scraper: Used to scrape app's info on Google Play Store
- llmchain-android: Langchain port for android
Please watch the demo video below.
Screen_recording_20230903_202439.mp4
- tool specs make prompt too long, currently filter packages in
LangChainService.getAgentExecutor
, need rephrase - search tool: simple search using duckduckgo, default return 10 results
- chat history memories
- Add clear chat histories
- use
ConversationBufferMemory
with last 10 rounds of histories - maybe use router chains to choose package first, then activity/shortcut/other app specific intents
- let user add/update/delete app specific intents dynamically!
- starting shortcut not implemented yet
- currently scrape no more than
MAX_GET_FROM_STORE
times from play store, maybe remove the limit and somehow notify the scrape progress on ui - more resilient
extractToolAndInput
maybe needed - better ui
Copyright 2023 wangmuy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.