Interface Callbacks.OnModelErrorCallback
- Enclosing class:
Callbacks
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
用于处理在调用大型语言模型(LLM)时发生的错误的异步回调接口。
-
方法概述
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<LlmResponse> call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error) 当模型调用失败时,会触发异步回调函数。
-
方法详细信息(Method Details)
-
call
io.reactivex.rxjava3.core.Maybe<LlmResponse> call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error) 当模型调用失败时,会触发异步回调函数。- Parameters:
callbackContext- Callback context.llmRequest- LLM request.error- The exception that occurred.- Returns:
- response override, or empty to continue with error.
-