Index

A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractBuilder() - Constructor for class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
addContent(Content) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
addTextContent(String) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
allowedFunctionName(String) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Builder
 
allowedFunctionNames() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
Returns the value of the allowedFunctionNames record component.
allowedFunctionNames(List<String>) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Builder
 
ANY - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Mode
Model is constrained to always predict a function call.
AUTO - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Mode
Model decides whether to call a function or return a natural language response.
autoCacheThreshold - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
autoCacheThreshold(Integer) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
autoCacheTtl - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
autoCacheTtl(Duration) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 

B

BLOCK_LOW_AND_ABOVE - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
BLOCK_MEDIUM_AND_ABOVE - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
BLOCK_NONE - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
BLOCK_ONLY_HIGH - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
build() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
build() - Method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest.Builder
 
build() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
build() - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.Builder
 
build() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
 
build() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
build() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Builder
 
builder() - Static method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
builder() - Static method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest
 
builder() - Static method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
builder() - Static method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
 
builder() - Static method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
builder() - Static method in record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
 
Builder() - Constructor for class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.Builder
 
Builder() - Constructor for class org.springframework.ai.google.genai.GoogleGenAiChatOptions.Builder
 
Builder() - Constructor for class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Builder
 

C

CachedContentException(String) - Constructor for exception org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService.CachedContentException
 
CachedContentException(String, Throwable) - Constructor for exception org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService.CachedContentException
 
cachedContentName - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
cachedContentName(String) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
CachedContentPage(List<GoogleGenAiCachedContent>, String) - Constructor for class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService.CachedContentPage
 
CachedContentRequest - Class in org.springframework.ai.google.genai.cache
Request for creating cached content in Google GenAI.
CachedContentRequest.Builder - Class in org.springframework.ai.google.genai.cache
 
CachedContentUpdateRequest - Class in org.springframework.ai.google.genai.cache
Request for updating cached content in Google GenAI.
CachedContentUpdateRequest.Builder - Class in org.springframework.ai.google.genai.cache
 
call(Prompt) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
 
candidateCount - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
candidateCount(Integer) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
cleanupExpired() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Removes all expired cached content.
clone() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
combineWith(ChatOptions.Builder<?>) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
config() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Returns the value of the config record component.
contents() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Returns the value of the contents record component.
contents(List<Content>) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
contents(List<Content>) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
convertToOpenApiSchema(ObjectNode) - Static method in class org.springframework.ai.google.genai.schema.JsonSchemaConverter
Converts a JSON Schema ObjectNode to OpenAPI schema format.
create(CachedContentRequest) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Creates cached content from the given request.
createAsync(CachedContentRequest) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Asynchronously creates cached content from the given request.
createTime(Instant) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 

D

delete(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Deletes cached content by name.
deleteAsync(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Asynchronously deletes cached content by name.
destroy() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
 
displayName(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
displayName(String) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 

E

equals(Object) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
equals(Object) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
equals(Object) - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
Indicates whether some other object is "equal to" this one.
executeToolCalls(Prompt, ChatResponse) - Method in class org.springframework.ai.google.genai.schema.GoogleGenAiToolCallingManager
Executes tool calls by delegating to the underlying tool calling manager.
expireTime(Instant) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
expireTime(Instant) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
expireTime(Instant) - Method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest.Builder
 
extendTtl(String, Duration) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Extends the TTL of cached content by the specified duration.

F

FLEX - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiServiceTier
The flex service tier.
from(CachedContent) - Static method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
Creates a GoogleGenAiCachedContent from the SDK's CachedContent.
from(GenerateContentResponseUsageMetadata) - Static method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Creates a GoogleGenAiUsage instance from the Google GenAI SDK response metadata.
from(ModalityTokenCount) - Static method in class org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
Creates a GoogleGenAiModalityTokenCount from the SDK's ModalityTokenCount.
from(TrafficType) - Static method in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Creates a GoogleGenAiTrafficType from the SDK's TrafficType.
fromJson(String) - Static method in class org.springframework.ai.google.genai.schema.JsonSchemaConverter
Parses a JSON string into an ObjectNode.

G

GEMINI_2_0_FLASH - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
Deprecated.
GEMINI_2_0_FLASH_LIGHT - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
Deprecated.
GEMINI_2_5_FLASH - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
gemini-2.5-flash is a thinking model that offers great, well-rounded capabilities.
GEMINI_2_5_FLASH_LIGHT - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
gemini-2.5-flash-lite is the fastest and most cost efficient Flash model.
GEMINI_2_5_PRO - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
gemini-2.5-pro is the most advanced reasoning Gemini model, capable of solving complex problems.
GEMINI_3_0_PRO_PREVIEW - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_1_FLASH_LITE - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_1_FLASH_LITE_IMAGE - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_1_PRO_PREVIEW - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_5_FLASH - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_5_FLASH_LITE - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_6_FLASH - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_FLASH_PREVIEW - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
GEMINI_3_PRO_PREVIEW - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
GeminiRequest(List<Content>, String, GenerateContentConfig) - Constructor for record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Creates an instance of a GeminiRequest record class.
genAiClient(Client) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
 
get(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Retrieves cached content by name.
getAsync(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Asynchronously retrieves cached content by name.
getAutoCacheThreshold() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getAutoCacheTtl() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getCachedContentName() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getCachedContentService() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
Gets the cached content service for managing cached content.
getCachedContentTokenCount() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the number of tokens in the cached content.
getCacheReadInputTokens() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
 
getCacheTokensDetails() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the list of modalities of the cached content in the request input.
getCandidateCount() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getCandidatesTokensDetails() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the list of modalities that were returned in the response.
getCategory() - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
getContents() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
getContents() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getContents() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService.CachedContentPage
 
getCreateTime() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getDisplayName() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
getDisplayName() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getExpireTime() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
getExpireTime() - Method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest
 
getExpireTime() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getFrequencyPenalty() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getGoogleSearchRetrieval() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getIncludeExtendedUsageMetadata() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getIncludeServerSideToolInvocations() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getIncludeThoughts() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getLabels() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getMaxOutputTokens() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getMaxTokens() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getMethod() - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
getMimeType(File) - Static method in class org.springframework.ai.google.genai.MimeTypeDetector
 
getMimeType(String) - Static method in class org.springframework.ai.google.genai.MimeTypeDetector
 
getMimeType(URI) - Static method in class org.springframework.ai.google.genai.MimeTypeDetector
 
getMimeType(URL) - Static method in class org.springframework.ai.google.genai.MimeTypeDetector
 
getMimeType(Path) - Static method in class org.springframework.ai.google.genai.MimeTypeDetector
 
getMimeType(Resource) - Static method in class org.springframework.ai.google.genai.MimeTypeDetector
 
getModality() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
Returns the modality type.
getModel() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
getModel() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getModel() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getName() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getName() - Method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
getNextPageToken() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService.CachedContentPage
 
getOptions() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
 
getOutputSchema() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getPresencePenalty() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getPromptTokensDetails() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the list of modalities that were processed in the request input.
getRemainingTtl() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
Gets the remaining time to live for the cached content.
getResponseMimeType() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getResponseSchema() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getSafetySettings() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getServiceTier() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getStopSequences() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getSystemInstruction() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
getSystemInstruction() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getTemperature() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getThinkingBudget() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getThinkingLevel() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getThoughtsTokenCount() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the number of tokens present in thoughts output for thinking-enabled models.
getThreshold() - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
getTokenCount() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
Returns the token count for this modality.
getToolCallbacks() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getToolChoice() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
Returns the tool choice configuration.
getToolContext() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getToolUsePromptTokenCount() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the number of tokens present in tool-use prompts.
getToolUsePromptTokensDetails() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the list of modalities that were processed for tool-use request inputs.
getTopK() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getTopP() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getTrafficType() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Returns the traffic type showing whether a request consumes Pay-As-You-Go or Provisioned Throughput quota.
getTtl() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
getTtl() - Method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest
 
getTtl() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getUpdateTime() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getUsageMetadata() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
getUseCachedContent() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
getValue() - Method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockMethod
 
getValue() - Method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
getValue() - Method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
 
getValue() - Method in enum class org.springframework.ai.google.genai.common.GoogleGenAiServiceTier
 
getValue() - Method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
getValue() - Method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiMessageType
 
getValue() - Method in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Returns the string value of the traffic type.
GoogleGenAiCachedContent - Class in org.springframework.ai.google.genai.cache
Represents cached content in Google GenAI for reusing large contexts across multiple requests.
GoogleGenAiCachedContent.Builder - Class in org.springframework.ai.google.genai.cache
 
GoogleGenAiCachedContentService - Class in org.springframework.ai.google.genai.cache
Service for managing cached content in Google GenAI.
GoogleGenAiCachedContentService(Client) - Constructor for class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
 
GoogleGenAiCachedContentService.CachedContentException - Exception in org.springframework.ai.google.genai.cache
Exception thrown when cached content operations fail.
GoogleGenAiCachedContentService.CachedContentPage - Class in org.springframework.ai.google.genai.cache
Result of listing cached content with pagination support.
GoogleGenAiChatModel - Class in org.springframework.ai.google.genai
Google GenAI Chat Model implementation that provides access to Google's Gemini language models.
GoogleGenAiChatModel(Client, GoogleGenAiChatOptions, ToolCallingManager, RetryTemplate, ObservationRegistry) - Constructor for class org.springframework.ai.google.genai.GoogleGenAiChatModel
Creates a new instance of GoogleGenAiChatModel.
GoogleGenAiChatModel.Builder - Class in org.springframework.ai.google.genai
 
GoogleGenAiChatModel.ChatModel - Enum Class in org.springframework.ai.google.genai
 
GoogleGenAiChatModel.GeminiMessageType - Enum Class in org.springframework.ai.google.genai
 
GoogleGenAiChatModel.GeminiRequest - Record Class in org.springframework.ai.google.genai
 
GoogleGenAiChatOptions - Class in org.springframework.ai.google.genai
Options for the Google GenAI Chat API.
GoogleGenAiChatOptions(String, Double, Integer, Double, List<String>, Double, Integer, Double, GoogleGenAiChatOptions.ToolChoice, List<ToolCallback>, Map<String, Object>, Integer, String, String, Integer, Boolean, GoogleGenAiThinkingLevel, Boolean, String, Boolean, Integer, Duration, Boolean, Boolean, List<GoogleGenAiSafetySetting>, Map<String, String>, GoogleGenAiServiceTier) - Constructor for class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
GoogleGenAiChatOptions.AbstractBuilder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>> - Class in org.springframework.ai.google.genai
 
GoogleGenAiChatOptions.Builder - Class in org.springframework.ai.google.genai
 
GoogleGenAiChatOptions.ToolChoice - Record Class in org.springframework.ai.google.genai
Configures function calling behavior when tools are provided.
GoogleGenAiChatOptions.ToolChoice.Builder - Class in org.springframework.ai.google.genai
 
GoogleGenAiChatOptions.ToolChoice.Mode - Enum Class in org.springframework.ai.google.genai
Controls how the model selects functions to call.
GoogleGenAiConstants - Class in org.springframework.ai.google.genai.common
Constants for Google Gen AI.
GoogleGenAiModalityTokenCount - Class in org.springframework.ai.google.genai.metadata
Represents token count information for a specific modality (text, image, audio, video).
GoogleGenAiModalityTokenCount(String, Integer) - Constructor for class org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
Creates a new modality token count instance.
GoogleGenAiRuntimeHints - Class in org.springframework.ai.google.genai.aot
The GoogleGenAiRuntimeHints class is responsible for registering runtime hints for Google GenAI classes.
GoogleGenAiRuntimeHints() - Constructor for class org.springframework.ai.google.genai.aot.GoogleGenAiRuntimeHints
 
GoogleGenAiSafetySetting - Class in org.springframework.ai.google.genai.common
 
GoogleGenAiSafetySetting() - Constructor for class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
GoogleGenAiSafetySetting(GoogleGenAiSafetySetting.HarmCategory, GoogleGenAiSafetySetting.HarmBlockThreshold, GoogleGenAiSafetySetting.HarmBlockMethod) - Constructor for class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
GoogleGenAiSafetySetting.Builder - Class in org.springframework.ai.google.genai.common
 
GoogleGenAiSafetySetting.HarmBlockMethod - Enum Class in org.springframework.ai.google.genai.common
Enum representing methods for evaluating harmful content.
GoogleGenAiSafetySetting.HarmBlockThreshold - Enum Class in org.springframework.ai.google.genai.common
Enum representing different threshold levels for blocking harmful content.
GoogleGenAiSafetySetting.HarmCategory - Enum Class in org.springframework.ai.google.genai.common
Enum representing different categories of harmful content.
GoogleGenAiServiceTier - Enum Class in org.springframework.ai.google.genai.common
The service tier to use for the request.
GoogleGenAiThinkingLevel - Enum Class in org.springframework.ai.google.genai.common
Enum representing the level of thinking tokens the model should generate.
GoogleGenAiToolCallingManager - Class in org.springframework.ai.google.genai.schema
Implementation of ToolCallingManager specifically designed for Vertex AI Gemini.
GoogleGenAiToolCallingManager(ToolCallingManager) - Constructor for class org.springframework.ai.google.genai.schema.GoogleGenAiToolCallingManager
Creates a new instance of GoogleGenAiToolCallingManager.
GoogleGenAiTrafficType - Enum Class in org.springframework.ai.google.genai.metadata
Represents the traffic type for Google GenAI requests, indicating whether a request consumes Pay-As-You-Go or Provisioned Throughput quota.
GoogleGenAiUsage - Class in org.springframework.ai.google.genai.metadata
Extended usage metadata for Google GenAI responses that includes thinking tokens, cached content, tool-use tokens, and modality breakdowns.
GoogleGenAiUsage(Integer, Integer, Integer, Integer, Integer, Integer, List<GoogleGenAiModalityTokenCount>, List<GoogleGenAiModalityTokenCount>, List<GoogleGenAiModalityTokenCount>, List<GoogleGenAiModalityTokenCount>, GoogleGenAiTrafficType, GenerateContentResponseUsageMetadata) - Constructor for class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
Creates a new GoogleGenAiUsage instance with all extended metadata.
googleSearchRetrieval - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
googleSearchRetrieval(Boolean) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 

H

HARM_BLOCK_METHOD_UNSPECIFIED - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockMethod
 
HARM_BLOCK_THRESHOLD_UNSPECIFIED - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
HARM_CATEGORY_DANGEROUS_CONTENT - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
 
HARM_CATEGORY_HARASSMENT - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
 
HARM_CATEGORY_HATE_SPEECH - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
 
HARM_CATEGORY_SEXUALLY_EXPLICIT - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
 
HARM_CATEGORY_UNSPECIFIED - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
 
hashCode() - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
hashCode() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Returns a hash code value for this object.
hashCode() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 
hashCode() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
Returns a hash code value for this object.
hasNextPage() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService.CachedContentPage
 
HIGH - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
High thinking level.

I

includeExtendedUsageMetadata - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
includeExtendedUsageMetadata(Boolean) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
includeServerSideToolInvocations - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
includeServerSideToolInvocations(Boolean) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
includeThoughts - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
includeThoughts(Boolean) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
isExpired() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
Checks if the cached content has expired.

J

JsonSchemaConverter - Class in org.springframework.ai.google.genai.schema
Utility class for converting JSON Schema to OpenAPI schema format.

L

labels - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
labels(Map<String, String>) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
list(Integer, String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Lists all cached content with optional pagination.
listAll() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Lists all cached content without pagination.
LOW - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
Low thinking level.

M

maxOutputTokens(Integer) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
MEDIUM - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
Balanced thinking for most tasks.
MimeTypeDetector - Class in org.springframework.ai.google.genai
Gemini supports the following MIME types: image/gif image/png image/jpeg video/mov video/mpeg video/mp4 video/mpg video/avi video/wmv video/mpegps video/flv https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini
MimeTypeDetector() - Constructor for class org.springframework.ai.google.genai.MimeTypeDetector
 
MINIMAL - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
Matches the "no thinking" setting for most queries.
mode() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
Returns the value of the mode record component.
mode(GoogleGenAiChatOptions.ToolChoice.Mode) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Builder
 
model(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
model(GoogleGenAiChatModel.ChatModel) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
model(String) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
MODEL - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiMessageType
 
modelName() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Returns the value of the modelName record component.
mutate() - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions
 

N

name(String) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
NONE - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Mode
Model will not call any functions.

O

observationRegistry(ObservationRegistry) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
 
OFF - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
 
ON_DEMAND - Enum constant in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Pay-As-You-Go traffic type.
options(GoogleGenAiChatOptions) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
 
org.springframework.ai.google.genai - package org.springframework.ai.google.genai
 
org.springframework.ai.google.genai.aot - package org.springframework.ai.google.genai.aot
 
org.springframework.ai.google.genai.cache - package org.springframework.ai.google.genai.cache
 
org.springframework.ai.google.genai.common - package org.springframework.ai.google.genai.common
 
org.springframework.ai.google.genai.metadata - package org.springframework.ai.google.genai.metadata
 
org.springframework.ai.google.genai.schema - package org.springframework.ai.google.genai.schema
 
outputSchema(String) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 

P

PRIORITY - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiServiceTier
The priority service tier.
PROBABILITY - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockMethod
 
PROVIDER_NAME - Static variable in class org.springframework.ai.google.genai.common.GoogleGenAiConstants
 
PROVISIONED_THROUGHPUT - Enum constant in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Provisioned Throughput traffic type.

R

refreshExpiration(String, Duration) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Refreshes the expiration of cached content to the maximum TTL.
registerHints(RuntimeHints, ClassLoader) - Method in class org.springframework.ai.google.genai.aot.GoogleGenAiRuntimeHints
 
resolveToolDefinitions(ToolCallingChatOptions) - Method in class org.springframework.ai.google.genai.schema.GoogleGenAiToolCallingManager
Resolves tool definitions and converts their input schemas to be compatible with Vertex AI's OpenAPI format.
responseCandidateToGeneration(Candidate) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
 
responseMimeType - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
responseMimeType(String) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
responseSchema - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
responseSchema(String) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
retryTemplate(RetryTemplate) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
 

S

safetySettings - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
safetySettings(List<GoogleGenAiSafetySetting>) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
serviceTier - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
serviceTier(GoogleGenAiServiceTier) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
setCategory(GoogleGenAiSafetySetting.HarmCategory) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
setMethod(GoogleGenAiSafetySetting.HarmBlockMethod) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
setObservationConvention(ChatModelObservationConvention) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
Use the provided convention for reporting observation data
setThreshold(GoogleGenAiSafetySetting.HarmBlockThreshold) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
SEVERITY - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockMethod
 
STANDARD - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiServiceTier
The standard service tier.
stream(Prompt) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel
 
systemInstruction(Content) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
systemInstruction(Content) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
systemInstruction(String) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 

T

THINKING_LEVEL_UNSPECIFIED - Enum constant in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
Unspecified thinking level.
thinkingBudget - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
thinkingBudget(Integer) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
thinkingLevel - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
thinkingLevel(GoogleGenAiThinkingLevel) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
toolCallingManager(ToolCallingManager) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
 
toolChoice - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
toolChoice(GoogleGenAiChatOptions.ToolChoice) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
ToolChoice(GoogleGenAiChatOptions.ToolChoice.Mode, List<String>) - Constructor for record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
Creates an instance of a ToolChoice record class.
toString() - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest
 
toString() - Method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest
 
toString() - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent
 
toString() - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting
 
toString() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
Returns a string representation of this record class.
toString() - Method in record class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice
Returns a string representation of this record class.
toString() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
 
toString() - Method in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
 
toString() - Method in class org.springframework.ai.google.genai.metadata.GoogleGenAiUsage
 
ttl(Duration) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
ttl(Duration) - Method in class org.springframework.ai.google.genai.cache.CachedContentRequest.Builder
 
ttl(Duration) - Method in class org.springframework.ai.google.genai.cache.CachedContentUpdateRequest.Builder
 

U

UNKNOWN - Enum constant in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Unknown or unspecified traffic type.
update(String, CachedContentUpdateRequest) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Updates cached content with new TTL or expiration.
updateAsync(String, CachedContentUpdateRequest) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContentService
Asynchronously updates cached content with new TTL or expiration.
updateTime(Instant) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
usageMetadata(CachedContentUsageMetadata) - Method in class org.springframework.ai.google.genai.cache.GoogleGenAiCachedContent.Builder
 
useCachedContent - Variable in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
useCachedContent(Boolean) - Method in class org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder
 
USER - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiMessageType
 

V

VALIDATED - Enum constant in enum class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Mode
Model predicts either a function call or a natural language response.
value - Variable in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
 
value - Variable in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiMessageType
 
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockMethod
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiServiceTier
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiMessageType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Mode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockMethod
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmBlockThreshold
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.HarmCategory
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiServiceTier
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.ChatModel
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiMessageType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.GoogleGenAiChatOptions.ToolChoice.Mode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Returns an array containing the constants of this enum class, in the order they are declared.

W

withCategory(GoogleGenAiSafetySetting.HarmCategory) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.Builder
 
withMethod(GoogleGenAiSafetySetting.HarmBlockMethod) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.Builder
 
withThreshold(GoogleGenAiSafetySetting.HarmBlockThreshold) - Method in class org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting.Builder
 
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form