-
Added new
sendText()method to support the new RTVIsend-textevent. The method takes a string, along with an optional set of options to control whether the bot should respond immediately and/or whether the bot should respond with audio (vs. text only). Note: This is a replacement for the currentappendToContext()method. -
appendToContext()has been deprecated in favor of the newsendText()method.
- Changed content type
startBot()POST request for compatibility reasons
- Added:
- Methods:
startBot()startBotAndConnect()appendToContext()sendClientMessage()sendClientRequest()registerFunctionCallHandler()unregisterFunctionCallHandler()unregisterAllFunctionCallHandlers()disconnectBot()
- Callbacks:
onBotLlmSearchResponse()onLLMFunctionCall()
- Methods:
- Removed:
- Helper classes (
LLMHelper,RTVIClientHelper) and associated methods (registerHelper,unregisterHelper) - Server configuration, including
getConfig(),updateConfig(),describeConfig()and associated types - Actions, including
action(),describeActions()and associated types expiryfield on client and transportsonStorageItemStored()callbackRTVIClientParamssendWithResponse()sendMessage()
- Helper classes (
- Changed:
connect()is modified to no longer make a POST request to the backend, but rather pass the specifiedValuestraight to theTransport. SeestartBotAndConnect()for a helper method which also includes the POST request.Transportnow passed directly intoPipecatClientOptionsrather than using factoryonBotReady()now receives aBotReadyDataparameter
- Renamed:
RTVIClient->PipecatClientRTVIEventCallbacks->PipecatEventCallbacksRTVIClientOptions->PipecatClientOptionsonPipecatMetrics()->onMetrics()
- Added
onServerMessagecallback
- Made
timestampanduserIdfields optional inTranscript
- Project renamed to
pipecat-client-android
- Added callbacks:
- onBotLLMStarted
- onBotLLMStopped
- onBotTTSStarted
- onBotTTSStopped
- Renamed:
VoiceClienttoRTVIClientVoiceClientOptionstoRTVIClientOptionsVoiceEventCallbackstoRTVIEventCallbacksVoiceErrortoRTVIErrorVoiceExceptiontoRTVIExceptionVoiceClientHelpertoRTVIClientHelperRegisteredVoiceClienttoRegisteredRTVIClientFailedToFetchAuthBundletoHttpError
RTVIClient()constructor parameter changesoptionsis now mandatorybaseUrlhas been moved tooptions.params.baseUrlbaseUrlandendpointsare now separate, and the endpoint names are appended to thebaseUrl
- Moved
RTVIClientOptions.configtoRTVIClientOptions.params.config - Moved
RTVIClientOptions.customHeaderstoRTVIClientOptions.params.headers - Moved
RTVIClientOptions.customBodyParamstoRTVIClientOptions.params.requestData TransportStatechanges- Removed
Idlestate, replaced withDisconnected - Added
Disconnectingstate
- Removed
- Added callbacks
onBotLLMText()onBotTTSText()onStorageItemStored()