Interface Callbacks.BeforeModelCallback

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.

@FunctionalInterface public static interface Callbacks.BeforeModelCallback
  • 方法概述

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Maybe<LlmResponse>
    call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder)
    在调用大型语言模型(LLM)之前,需要执行异步回调函数。
  • 方法详细信息(Method Details)

    • call

      io.reactivex.rxjava3.core.Maybe<LlmResponse> call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder)
      在调用大型语言模型(LLM)之前,需要执行异步回调函数。
      Parameters:
      callbackContext - Callback context.
      llmRequestBuilder - LLM request builder.
      Returns:
      response override, or empty to continue.