appfunctions
Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
August 13, 2025 | - | - | - | 1.0.0-alpha03 |
Declaring dependencies
To add a dependency on appfunctions, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle
file for
your app or module:
Groovy
dependencies { implementation "androidx.appfunctions:appfunctions:1.0.0-alpha03" implementation "androidx.appfunctions:appfunctions-service:1.0.0-alpha03" implementation "androidx.appfunctions:appfunctions-compiler:1.0.0-alpha03" }
Kotlin
dependencies { implementation("androidx.appfunctions:appfunctions:1.0.0-alpha03") implementation("androidx.appfunctions:appfunctions-service:1.0.0-alpha03") implementation("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha03") }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
There are no release notes for this artifact.
Version 1.0
Version 1.0.0-alpha03
August 13, 2025
androidx.appfunctions:appfunctions-*:1.0.0-alpha03
is released. Version 1.0.0-alpha03 contains these commits.
New Features
- Use KDoc(s) as
AppFunction
descriptions - Restrict values for Int and String types using
AppFunctionIntValueConstraint
andAppFunctionStringValueConstraint
annotations, respectively. - Specify a natural language description for large language models and a user visible description displayed within agent apps.
- Automatically grant permissions to URI(s) returned from an app function using
AppFunctionUriGrant
class. - Write Robolectric tests using
AppFunctionTestRule
for testing your app function setup.
API Changes
- Add
AppFunctionStringValueConstraint
(I10e3f) - Add
AppFunctionIntValueConstraint
(Ifda13) - Refactor
AppFunctionPrimitiveTypeMetadata
to specific data type classes. (I1a3b2) - Add description field in
AppFunctionResponseMetadata
(I2332b) - Remove permission requirement from
setAppFunctionEnabled
API (I1b92a) - Add description field in
AppFunctionParameterMetadata
(I40a67) - Add
AppFunctionUriGrant
(I67ca9) - Add
resolveAppFunctionAppMetadata
API. (I17408) - Add
isDescribedByKdoc
in@AppFunctionSerializable
annotation (Ie14e7) - Add description field in
AppFunctionDataTypeMetadata
(I1bcac) - Return
AppPackageMetadata
fromobserveAppFunctions
API. (I68c7e) - Add description field in
AppFunctionMetadata
(I060e2) - Add
AppFunctionTestRule
(Id5ed0) - Add
isDescribedByKdoc
in@AppFunction
annotation (Ia84d2)
Bug Fixes
AppFunctionManagerCompat
only supports U+ devices (Ifa8d0)- Add property descriptions of shared serializable types in
AppFunction
's metadata xml (I2aab2) - Add a description element in generated
AppFunction
's metadata xml (Ie5bf6)
Version 1.0.0-alpha02
June 4, 2025
androidx.appfunctions:appfunctions:1.0.0-alpha02
, androidx.appfunctions:appfunctions-compiler:1.0.0-alpha02
, and androidx.appfunctions:appfunctions-service:1.0.0-alpha02
are released. Version 1.0.0-alpha02 contains these commits.
New Features
- Support Android 16 API(s).
- Better support for parameterized
AppFunctionSerializable(s)
at compile time.
API Changes
- Introduced
AppFunctionSchemaDefinition
API, enabling agents to define their own predefined function schemas.
Bug Fixes
- Error handling for missing runtime enabled state of
AppFunctions
. - Minor bugfix in
observeAppFunctions
API to observe changes inAppFunctionComponentMetadata
. - Additional error logs.
Version 1.0.0-alpha01
May 7, 2025
androidx.appfunctions:appfunctions:1.0.0-alpha01
, androidx.appfunctions:appfunctions-compiler:1.0.0-alpha01
, and androidx.appfunctions:appfunctions-service:1.0.0-alpha01
are released. Version 1.0.0-alpha01 contains these commits.
New Features
The AppFunctions
Jetpack library is built on top of android.app.appfunctions
platform APIs. This library simplifies exposing your app's functionality to the Assistant and allows the Assistant to interact with the app's exposed functions.
androidx.appfunctions:appfunctions
: Core client APIs for managing (enable/disable) and interacting with (search/execute)AppFunctions
.androidx.appfunctions:appfunctions-service
: Service-side APIs to easily expose your app's functionalities asAppFunctions
.androidx.appfunctions:appfunctions-compiler
: Required KSP compiler to generate necessary code for exposingAppFunctions
.