开启(或激活)用户消息回调函数(Callback)

Callback executed when a user message is received before an invocation starts.

类型

Link copied to clipboard
object Companion

属性(Properties)

Link copied to clipboard
open val name: String

这个回调函数的名称,用于追踪和日志记录。

函数

Link copied to clipboard
abstract suspend fun call(invocationContext: InvocationContext, userMessage: Content): Content

当在调用开始之前接收到用户消息时,会执行此回调函数。