-
public class BaseVoiceContract
-
-
Field Summary
Fields Modifier and Type Field Description private final StringEXTRA_PACKAGE_NAMEprivate final StringACTION_REQUEST_REGISTRATION_SYNCprivate final StringKEY_APP_DESCRIPTIONpublic final static BaseVoiceContractINSTANCE
-
Method Summary
Modifier and Type Method Description final StringgetEXTRA_PACKAGE_NAME()final StringgetACTION_REQUEST_REGISTRATION_SYNC()Sent by the voice assistant app to ask all provider apps to (re-)push their current tool/context registrations. final StringgetKEY_APP_DESCRIPTION()Reserved VoiceContextInfo.key that every provider app must register. -
-
Method Detail
-
getEXTRA_PACKAGE_NAME
final String getEXTRA_PACKAGE_NAME()
-
getACTION_REQUEST_REGISTRATION_SYNC
final String getACTION_REQUEST_REGISTRATION_SYNC()
Sent by the voice assistant app to ask all provider apps to (re-)push their current tool/context registrations.
-
getKEY_APP_DESCRIPTION
final String getKEY_APP_DESCRIPTION()
Reserved VoiceContextInfo.key that every provider app must register.
It describes the purpose of the host application to the LLM. Apps that use the
VoiceAssistCapabilitieslibrary are required to register a VoiceContextInfo with this key; failing to do so before being queried by the voice assistant will crash the host application with an IllegalStateException.
-
-
-
-