Class RunConfig

java.lang.Object
com.google.adk.agents.RunConfig

public abstract class RunConfig extends Object
Configuration to modify an agent's LLM's underlying behavior.
  • Constructor Details

    • RunConfig

      public RunConfig()
  • Method Details

    • speechConfig

      public abstract @Nullable com.google.genai.types.SpeechConfig speechConfig()
    • responseModalities

      public abstract com.google.common.collect.ImmutableList<com.google.genai.types.Modality> responseModalities()
    • avatarConfig

      public abstract @Nullable com.google.genai.types.AvatarConfig avatarConfig()
    • saveInputBlobsAsArtifacts

      public abstract boolean saveInputBlobsAsArtifacts()
    • streamingMode

      public abstract RunConfig.StreamingMode streamingMode()
    • toolExecutionMode

      public abstract RunConfig.ToolExecutionMode toolExecutionMode()
    • outputAudioTranscription

      public abstract @Nullable com.google.genai.types.AudioTranscriptionConfig outputAudioTranscription()
    • inputAudioTranscription

      public abstract @Nullable com.google.genai.types.AudioTranscriptionConfig inputAudioTranscription()
    • maxLlmCalls

      public abstract int maxLlmCalls()
    • autoCreateSession

      public abstract boolean autoCreateSession()
    • groupFunctionResponsesInHistoryOverride

      @Deprecated public abstract Optional<Boolean> groupFunctionResponsesInHistoryOverride()
      Deprecated.
      Expected only for specific model endpoints.
      Three-state override for grouping function calls before function responses in history (FC1, FC2, FR1, FR2) instead of pairing each response with its call (FC1, FR1, FC2, FR2).

      Empty (default) groups only for models that require it (Gemini 3); when present the value applies to all models.

      Not needed for the core ADK Gemini implementation, which already groups automatically for Gemini 3. Kept for backwards compatibility with other model implementations that route to endpoints requiring the grouped form.

    • groupFunctionResponsesInHistory

      @Deprecated public final boolean groupFunctionResponsesInHistory()
      Deprecated.
      Expected only for specific model endpoints.
      Whether grouping is explicitly enabled; equivalent to groupFunctionResponsesInHistoryOverride().orElse(false). Retained for backwards compatibility.
    • customMetadata

      public abstract com.google.common.collect.ImmutableMap<String,Object> customMetadata()
    • toBuilder

      public abstract RunConfig.Builder toBuilder()
    • builder

      public static RunConfig.Builder builder()
    • builder

      public static RunConfig.Builder builder(RunConfig runConfig)