`Interface ResponseProcessor`
public interface ResponseProcessor
用于处理大型语言模型(LLM)响应的接口。
-
嵌套类概述
Nested ClassesModifier and TypeInterfaceDescriptionstatic class响应处理的结果。 -
方法概述
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ResponseProcessor.ResponseProcessingResult> processResponse(InvocationContext context, LlmResponse response) 将大型语言模型(LLM)的响应作为后处理阶段的一部分进行处理。
-
方法详细信息(Method Details)
-
processResponse
io.reactivex.rxjava3.core.Single<ResponseProcessor.ResponseProcessingResult> processResponse(InvocationContext context, LlmResponse response) 将大型语言模型(LLM)的响应作为后处理阶段的一部分进行处理。- Parameters:
context- the invocation context.response- the LLM response to process.- Returns:
- a list of events generated during processing (if any).
-