Basic 类
java.lang.Object
com.google.adk.flows.llmflows.Basic
- All Implemented Interfaces:
RequestProcessor
RequestProcessor 该模块用于处理构建大型语言模型(LLM)请求所需的基本信息。-
嵌套类概述
Nested classes/interfaces inherited from interface RequestProcessor
RequestProcessor.RequestProcessingResultModifier and TypeInterfaceDescriptionstatic class请求处理的结果。 -
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult> processRequest(InvocationContext context, LlmRequest request) 将 LLM 请求作为预处理阶段的一部分进行处理。
-
构造函数详细信息
-
Basic
public Basic()
-
-
方法详细信息(Method Details)
-
processRequest
public io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult> processRequest(InvocationContext context, LlmRequest request) 描述内容复制自接口文档:RequestProcessor将 LLM 请求作为预处理阶段的一部分进行处理。- Specified by:
processRequestin interfaceRequestProcessor- Parameters:
context- the invocation context.request- the LLM request to process.- Returns:
- a list of events generated during processing (if any).
-