Uses of Class
com.google.adk.models.LlmRequest
Packages that use LlmRequest
Package
Description
-
Uses of LlmRequest in com.google.adk.agents
Methods in com.google.adk.agents with parameters of type LlmRequestModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<LlmResponse>Callbacks.OnModelErrorCallback.call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error) Async callback when model call fails.Callbacks.OnModelErrorCallbackSync.call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error) -
Uses of LlmRequest in com.google.adk.flows.llmflows
Methods in com.google.adk.flows.llmflows that return LlmRequestModifier and TypeMethodDescriptionabstract LlmRequestRequestProcessor.RequestProcessingResult.updatedRequest()Updated LLM request.Methods in com.google.adk.flows.llmflows with parameters of type LlmRequestModifier and TypeMethodDescriptionRequestProcessor.RequestProcessingResult.create(LlmRequest updatedRequest, Iterable<Event> events) Creates a newRequestProcessor.RequestProcessingResult.protected io.reactivex.rxjava3.core.Flowable<Event>BaseLlmFlow.postprocess(InvocationContext context, Event baseEventForLlmResponse, LlmRequest llmRequest, LlmResponse llmResponse) Post-processes the LLM response after receiving it from the LLM.io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>AgentTransfer.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>Basic.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>Compaction.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>Contents.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>Examples.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>Identity.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>Instructions.processRequest(InvocationContext context, LlmRequest request) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>RequestConfirmationLlmRequestProcessor.processRequest(InvocationContext invocationContext, LlmRequest llmRequest) io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>RequestProcessor.processRequest(InvocationContext context, LlmRequest request) Process the LLM request as part of the pre-processing stage.Method parameters in com.google.adk.flows.llmflows with type arguments of type LlmRequestModifier and TypeMethodDescriptionprotected io.reactivex.rxjava3.core.Flowable<Event>BaseLlmFlow.preprocess(InvocationContext context, AtomicReference<LlmRequest> llmRequestRef) Pre-processes the LLM request before sending it to the LLM. -
Uses of LlmRequest in com.google.adk.models
Methods in com.google.adk.models that return LlmRequestModifier and TypeMethodDescriptionabstract LlmRequestLlmRequest.Builder.build()static LlmRequestGeminiUtil.prepareGenenerateContentRequest(LlmRequest llmRequest, boolean sanitize) Prepares anLlmRequestfor the GenerateContent API.static LlmRequestGeminiUtil.prepareGenenerateContentRequest(LlmRequest llmRequest, boolean sanitize, boolean stripThoughts) Prepares anLlmRequestfor the GenerateContent API.static LlmRequestGeminiUtil.removeClientFunctionCallId(LlmRequest llmRequest) Removes client-side function call IDs from the request.static LlmRequestGeminiUtil.sanitizeRequestForGeminiApi(LlmRequest llmRequest) Sanitizes the request to ensure it is compatible with the Gemini API backend.Methods in com.google.adk.models with parameters of type LlmRequestModifier and TypeMethodDescriptionApigeeLlm.connect(LlmRequest llmRequest) abstract BaseLlmConnectionBaseLlm.connect(LlmRequest llmRequest) Creates a live connection to the LLM.Claude.connect(LlmRequest llmRequest) Gemini.connect(LlmRequest llmRequest) io.reactivex.rxjava3.core.Flowable<LlmResponse>ApigeeLlm.generateContent(LlmRequest llmRequest, boolean stream) abstract io.reactivex.rxjava3.core.Flowable<LlmResponse>BaseLlm.generateContent(LlmRequest llmRequest, boolean stream) Generates one content from the given LLM request and tools.io.reactivex.rxjava3.core.Flowable<LlmResponse>Claude.generateContent(LlmRequest llmRequest, boolean stream) io.reactivex.rxjava3.core.Flowable<LlmResponse>Gemini.generateContent(LlmRequest llmRequest, boolean stream) static LlmRequestGeminiUtil.prepareGenenerateContentRequest(LlmRequest llmRequest, boolean sanitize) Prepares anLlmRequestfor the GenerateContent API.static LlmRequestGeminiUtil.prepareGenenerateContentRequest(LlmRequest llmRequest, boolean sanitize, boolean stripThoughts) Prepares anLlmRequestfor the GenerateContent API.static LlmRequestGeminiUtil.removeClientFunctionCallId(LlmRequest llmRequest) Removes client-side function call IDs from the request.static LlmRequestGeminiUtil.sanitizeRequestForGeminiApi(LlmRequest llmRequest) Sanitizes the request to ensure it is compatible with the Gemini API backend. -
Uses of LlmRequest in com.google.adk.telemetry
Methods in com.google.adk.telemetry with parameters of type LlmRequestModifier and TypeMethodDescriptionstatic voidTracing.traceCallLlm(io.opentelemetry.api.trace.Span span, InvocationContext invocationContext, String eventId, LlmRequest llmRequest, LlmResponse llmResponse) Traces a call to the LLM.