# Uses of Class
com.google.adk.models.LlmRequest.Builder

Packages that use LlmRequest.Builder
Package
Description
com.google.adk.agents
com.google.adk.codeexecutors
com.google.adk.models
com.google.adk.plugins
com.google.adk.plugins.agentanalytics
com.google.adk.tools
com.google.adk.tools.computeruse
com.google.adk.tools.retrieval

- ## Uses of LlmRequest.Builder in com.google.adk.agents

  Methods in com.google.adk.agents with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Maybe<LlmResponse>`
  Callbacks.BeforeModelCallback.`call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder)`
  Async callback before LLM invocation.
  `Optional<LlmResponse>`
  Callbacks.BeforeModelCallbackSync.`call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder)`

- ## Uses of LlmRequest.Builder in com.google.adk.codeexecutors

  Methods in com.google.adk.codeexecutors with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `void`
  BuiltInCodeExecutor.`processLlmRequest(LlmRequest.Builder llmRequestBuilder)`
  Pre-process the LLM request for Gemini 2.0+ models to use the code execution tool.

- ## Uses of LlmRequest.Builder in com.google.adk.models

  Methods in com.google.adk.models that return LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `final LlmRequest.Builder`
  LlmRequest.Builder.`appendInstructions(List<String> instructions)`
  `final LlmRequest.Builder`
  LlmRequest.Builder.`appendTools(List<BaseTool> tools)`
  `static LlmRequest.Builder`
  LlmRequest.`builder()`
  `abstract LlmRequest.Builder`
  LlmRequest.Builder.`config(com.google.genai.types.GenerateContentConfig config)`
  `abstract LlmRequest.Builder`
  LlmRequest.Builder.`contents(List<com.google.genai.types.Content> contents)`
  `abstract LlmRequest.Builder`
  LlmRequest.Builder.`liveConnectConfig(com.google.genai.types.LiveConnectConfig liveConnectConfig)`
  `abstract LlmRequest.Builder`
  LlmRequest.Builder.`model(String model)`
  `final LlmRequest.Builder`
  LlmRequest.Builder.`outputSchema(com.google.genai.types.Schema schema)`
  Sets the output schema for the LLM response.
  `abstract LlmRequest.Builder`
  LlmRequest.`toBuilder()`
  `abstract LlmRequest.Builder`
  LlmRequest.Builder.`tools(Map<String,BaseTool> tools)`

- ## Uses of LlmRequest.Builder in com.google.adk.plugins

  Methods in com.google.adk.plugins with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `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>`
  ReplayPlugin.`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)`

- ## Uses of LlmRequest.Builder in com.google.adk.plugins.agentanalytics

  Methods in com.google.adk.plugins.agentanalytics with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Maybe<LlmResponse>`
  BigQueryAgentAnalyticsPlugin.`beforeModelCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest)`
  Callback before LLM call.
  `io.reactivex.rxjava3.core.Maybe<LlmResponse>`
  BigQueryAgentAnalyticsPlugin.`onModelErrorCallback(CallbackContext callbackContext, LlmRequest.Builder llmRequest, Throwable error)`

- ## Uses of LlmRequest.Builder in com.google.adk.tools

  Methods in com.google.adk.tools with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Completable`
  LoadArtifactsTool.`appendArtifactsToLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  BaseTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  Processes the outgoing `LlmRequest.Builder`.
  `io.reactivex.rxjava3.core.Completable`
  BuiltInCodeExecutionTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  ExampleTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  GoogleMapsTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  GoogleSearchTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  LoadArtifactsTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  LoadMemoryTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  UrlContextTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  `io.reactivex.rxjava3.core.Completable`
  VertexAiSearchTool.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`

- ## Uses of LlmRequest.Builder in com.google.adk.tools.computeruse

  Methods in com.google.adk.tools.computeruse with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Completable`
  ComputerUseToolset.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`
  Adds computer use configuration to the LLM request.

- ## Uses of LlmRequest.Builder in com.google.adk.tools.retrieval

  Methods in com.google.adk.tools.retrieval with parameters of type LlmRequest.Builder
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Completable`
  VertexAiRagRetrieval.`processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext)`