Class Contents
java.lang.Object
com.google.adk.flows.llmflows.Contents
- All Implemented Interfaces:
RequestProcessor
RequestProcessor
that populates content in request for LLM flows.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.adk.flows.llmflows.RequestProcessor
RequestProcessor.RequestProcessingResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single
<RequestProcessor.RequestProcessingResult> processRequest
(InvocationContext context, LlmRequest request) Process the LLM request as part of the pre-processing stage.
-
Constructor Details
-
Contents
public Contents()
-
-
Method Details
-
processRequest
public io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult> processRequest(InvocationContext context, LlmRequest request) Description copied from interface:RequestProcessor
Process the LLM request as part of the pre-processing stage.- Specified by:
processRequest
in interfaceRequestProcessor
- Parameters:
context
- the invocation context.request
- the LLM request to process.- Returns:
- a list of events generated during processing (if any).
-