Uses of Class
com.google.adk.models.LlmResponse
Packages that use LlmResponse
Package
Description
-
Uses of LlmResponse in com.google.adk.agents
Methods in com.google.adk.agents that return types with arguments of type LlmResponseModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<LlmResponse>Callbacks.AfterModelCallback.call(CallbackContext callbackContext, LlmResponse llmResponse) Async callback after LLM response.Callbacks.AfterModelCallbackSync.call(CallbackContext callbackContext, LlmResponse llmResponse) io.reactivex.rxjava3.core.Maybe<LlmResponse>Callbacks.BeforeModelCallback.call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder) Async callback before LLM invocation.Callbacks.BeforeModelCallbackSync.call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder) io.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) Methods in com.google.adk.agents with parameters of type LlmResponseModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<LlmResponse>Callbacks.AfterModelCallback.call(CallbackContext callbackContext, LlmResponse llmResponse) Async callback after LLM response.Callbacks.AfterModelCallbackSync.call(CallbackContext callbackContext, LlmResponse llmResponse) -
Uses of LlmResponse in com.google.adk.flows.llmflows
Methods in com.google.adk.flows.llmflows that return LlmResponseModifier and TypeMethodDescriptionabstract LlmResponseResponseProcessor.ResponseProcessingResult.updatedResponse()Updated LLM response.Methods in com.google.adk.flows.llmflows with parameters of type LlmResponseModifier and TypeMethodDescriptionResponseProcessor.ResponseProcessingResult.create(LlmResponse updatedResponse, Iterable<Event> events) ResponseProcessor.ResponseProcessingResult.create(LlmResponse updatedResponse, Iterable<Event> events, String transferToAgent) 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<ResponseProcessor.ResponseProcessingResult>ResponseProcessor.processResponse(InvocationContext context, LlmResponse response) Process the LLM response as part of the post-processing stage. -
Uses of LlmResponse in com.google.adk.models
Methods in com.google.adk.models that return LlmResponseModifier and TypeMethodDescriptionLlmResponse.Builder.build()static LlmResponseLlmResponse.create(com.google.genai.types.GenerateContentResponse response) static LlmResponseMethods in com.google.adk.models that return types with arguments of type LlmResponseModifier and TypeMethodDescriptionio.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) io.reactivex.rxjava3.core.Flowable<LlmResponse>BaseLlmConnection.receive()Receives the model responses.io.reactivex.rxjava3.core.Flowable<LlmResponse>GeminiLlmConnection.receive()Methods in com.google.adk.models with parameters of type LlmResponseModifier and TypeMethodDescriptionstatic Optional<com.google.genai.types.Part>GeminiUtil.getPart0FromLlmResponse(LlmResponse llmResponse) Extracts the first part of an LlmResponse, if available.static StringGeminiUtil.getTextFromLlmResponse(LlmResponse llmResponse) Extracts text content from the first part of an LlmResponse, if available.static booleanGeminiUtil.shouldEmitAccumulatedText(LlmResponse currentLlmResponse) Determines if accumulated text should be emitted based on the current LlmResponse. -
Uses of LlmResponse in com.google.adk.plugins
Methods in com.google.adk.plugins that return types with arguments of type LlmResponseModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<LlmResponse>LoggingPlugin.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) default io.reactivex.rxjava3.core.Maybe<LlmResponse>Plugin.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) Callback executed after a response is received from the model.io.reactivex.rxjava3.core.Maybe<LlmResponse>PluginManager.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) io.reactivex.rxjava3.core.Maybe<LlmResponse>ContextFilterPlugin.beforeModelCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest) Filters the LLM request context by trimming recent turns and applying any custom filter.io.reactivex.rxjava3.core.Maybe<LlmResponse>GlobalInstructionPlugin.beforeModelCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest) io.reactivex.rxjava3.core.Maybe<LlmResponse>LoggingPlugin.beforeModelCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest) default io.reactivex.rxjava3.core.Maybe<LlmResponse>Plugin.beforeModelCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest) Callback executed before a request is sent to the model.io.reactivex.rxjava3.core.Maybe<LlmResponse>PluginManager.beforeModelCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest) io.reactivex.rxjava3.core.Maybe<LlmResponse>LoggingPlugin.onModelErrorCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest, Throwable error) default io.reactivex.rxjava3.core.Maybe<LlmResponse>Plugin.onModelErrorCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest, Throwable error) Callback executed when a model call encounters an error.io.reactivex.rxjava3.core.Maybe<LlmResponse>PluginManager.onModelErrorCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest, Throwable error) Methods in com.google.adk.plugins with parameters of type LlmResponseModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<LlmResponse>LoggingPlugin.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) default io.reactivex.rxjava3.core.Maybe<LlmResponse>Plugin.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) Callback executed after a response is received from the model.io.reactivex.rxjava3.core.Maybe<LlmResponse>PluginManager.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) -
Uses of LlmResponse in com.google.adk.telemetry
Methods in com.google.adk.telemetry with parameters of type LlmResponseModifier and TypeMethodDescriptionstatic voidTracing.traceCallLlm(io.opentelemetry.api.trace.Span span, InvocationContext invocationContext, String eventId, LlmRequest llmRequest, LlmResponse llmResponse) Traces a call to the LLM.