Class LlmRequest.Builder
java.lang.Object
com.google.adk.models.LlmRequest.Builder
- Enclosing class:
LlmRequest
Builder for constructing
LlmRequest
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LlmRequest.Builder
appendInstructions
(List<String> instructions) final LlmRequest.Builder
appendTools
(List<BaseTool> tools) abstract LlmRequest
build()
abstract Optional
<com.google.genai.types.GenerateContentConfig> config()
abstract LlmRequest.Builder
config
(com.google.genai.types.GenerateContentConfig config) abstract LlmRequest.Builder
abstract LlmRequest.Builder
liveConnectConfig
(com.google.genai.types.LiveConnectConfig liveConnectConfig) abstract LlmRequest.Builder
final LlmRequest.Builder
outputSchema
(com.google.genai.types.Schema schema) Sets the output schema for the LLM response.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
-
contents
@CanIgnoreReturnValue public abstract LlmRequest.Builder contents(List<com.google.genai.types.Content> contents) -
config
@CanIgnoreReturnValue public abstract LlmRequest.Builder config(com.google.genai.types.GenerateContentConfig config) -
config
-
liveConnectConfig
@CanIgnoreReturnValue public abstract LlmRequest.Builder liveConnectConfig(com.google.genai.types.LiveConnectConfig liveConnectConfig) -
appendInstructions
-
appendTools
-
outputSchema
@CanIgnoreReturnValue public final LlmRequest.Builder outputSchema(com.google.genai.types.Schema schema) Sets the output schema for the LLM response. If set, The output content will always be a JSON string that conforms to the schema. -
build
-