LiteRtLm对话;交谈

Interface wrapping the LiteRT-LM Conversation to enable mockability.

Inheritors

函数

Link copied to clipboard
open fun cancelProcess()

停止由……启动的生成过程。 sendMessageAsync因此,关闭操作需要等到该操作完全完成之后才能生效;对话内容之后无法被再次使用,必须被彻底删除(即关闭)。

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun sendMessage(message: Message): Message
Link copied to clipboard
abstract fun sendMessageAsync(message: Message, callback: MessageCallback)