课程说明
java.lang.Object
com.google.adk.flows.llmflows.Instructions
- 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 请求作为预处理阶段的一部分进行处理。
-
构造函数详细信息
-
Instructions
public Instructions()
-
-
方法详细信息(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).
-