Skip to main content

Project setup

Set the SDK dependencies for using the LLM SDK.

Add the SDK dependency

Add the dependency to the build.gradle file as shown in the example below.

settings.gradle file


App module's build.gradle file

dependencies {
implementation("ai.pleos.playground:LLM:2.1.3.1")
}

Add permission requirement

All APIs in this SDK require the following permission to be granted. Ensure this permission is added to your AndroidManifest.xml file.

AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

...
<uses-permission android:name="pleos.car.permission.LLM_SERVICE" />
...

</manifest>