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.Builderabstract booleanDeprecated.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() -
groupFunctionResponsesInHistory
Deprecated.Expected only for specific model endpoints.Whether to group all function calls before all function responses in the request history (FC1, FC2, FR1, FR2) instead of pairing each response with its call (FC1, FR1, FC2, FR2). Opt-in and off by default. -
toBuilder
-
builder
-
builder
-