Class RunConfig
java.lang.Object
com.google.adk.agents.RunConfig
Configuration to modify an agent's LLM's underlying behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forRunConfig.static enumStreaming mode for the runner.static enumExecution mode when the model requests multiple tools. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract @Nullable com.google.genai.types.AvatarConfigstatic RunConfig.Builderbuilder()static RunConfig.Builderfinal booleanDeprecated.Expected only for specific model endpoints.Deprecated.Expected only for specific model endpoints.abstract @Nullable com.google.genai.types.AudioTranscriptionConfigabstract intabstract @Nullable com.google.genai.types.AudioTranscriptionConfigabstract com.google.common.collect.ImmutableList<com.google.genai.types.Modality> abstract booleanabstract @Nullable com.google.genai.types.SpeechConfigabstract RunConfig.StreamingModeabstract RunConfig.Builderabstract RunConfig.ToolExecutionMode
-
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
-
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.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.Expected only for specific model endpoints.Whether grouping is explicitly enabled; equivalent togroupFunctionResponsesInHistoryOverride().orElse(false). Retained for backwards compatibility. -
customMetadata
-
toBuilder
-
builder
-
builder
-