AppFunctionAppMetadata


public final class AppFunctionAppMetadata


Metadata describing how an app exposes its functions for use by an AI agent or large language model (LLM).

This class corresponds to the styleable in the XML linked to property android.app.appfunctions.app_metadata in the app's manifest.

Summary

Public constructors

AppFunctionAppMetadata(
    @NonNull String description,
    @NonNull String displayDescription
)

Public methods

boolean
equals(Object other)
final @NonNull String

Natural language description guiding the LLM on how to use the app's functions.

final @NonNull String

A short, user-visible description of what the app functions enable the agent to do.

int
@NonNull String

Public constructors

AppFunctionAppMetadata

Added in 1.0.0-alpha03
public AppFunctionAppMetadata(
    @NonNull String description,
    @NonNull String displayDescription
)

Public methods

equals

public boolean equals(Object other)

getDescription

Added in 1.0.0-alpha03
public final @NonNull String getDescription()

Natural language description guiding the LLM on how to use the app's functions.

Corresponds to the description attribute in the styleable. Defaults to empty string if not specified.

getDisplayDescription

Added in 1.0.0-alpha03
public final @NonNull String getDisplayDescription()

A short, user-visible description of what the app functions enable the agent to do.

Corresponds to the displayDescription attribute in the styleable. Defaults to empty string if not specified.

hashCode

public int hashCode()

toString

public @NonNull String toString()