Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractConversionServiceOutputConverter<T> - Class in org.springframework.ai.converter
-
Abstract
StructuredOutputConverterimplementation that uses a pre-configuredDefaultConversionServiceto convert the LLM output into the desired type format. - AbstractConversionServiceOutputConverter(DefaultConversionService) - Constructor for class org.springframework.ai.converter.AbstractConversionServiceOutputConverter
-
Create a new
AbstractConversionServiceOutputConverterinstance. - AbstractEmbeddingModel - Class in org.springframework.ai.embedding
-
Abstract implementation of the
EmbeddingModelinterface that provides dimensions calculation caching. - AbstractEmbeddingModel() - Constructor for class org.springframework.ai.embedding.AbstractEmbeddingModel
- AbstractMessage - Class in org.springframework.ai.chat.messages
-
The AbstractMessage class is an abstract implementation of the Message interface.
- AbstractMessage(MessageType, String, Map<String, Object>) - Constructor for class org.springframework.ai.chat.messages.AbstractMessage
-
Create a new AbstractMessage with the given message type, text content, and metadata.
- AbstractMessage(MessageType, Resource, Map<String, Object>) - Constructor for class org.springframework.ai.chat.messages.AbstractMessage
-
Create a new AbstractMessage with the given message type, resource, and metadata.
- AbstractMessageOutputConverter<T> - Class in org.springframework.ai.converter
-
Abstract
StructuredOutputConverterimplementation that uses a pre-configuredMessageConverterto convert the LLM output into the desired type format. - AbstractMessageOutputConverter(MessageConverter) - Constructor for class org.springframework.ai.converter.AbstractMessageOutputConverter
-
Create a new AbstractMessageOutputConverter.
- AbstractResponseMetadata - Class in org.springframework.ai.model
- AbstractResponseMetadata() - Constructor for class org.springframework.ai.model.AbstractResponseMetadata
-
Create a new
AbstractResponseMetadatainstance. - add(String, Object) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- add(String, List<Message>) - Method in interface org.springframework.ai.chat.memory.ChatMemory
-
Save the specified messages in the chat memory for the specified conversation.
- add(String, List<Message>) - Method in class org.springframework.ai.chat.memory.MessageWindowChatMemory
- add(String, Message) - Method in interface org.springframework.ai.chat.memory.ChatMemory
-
Save the specified message in the chat memory for the specified conversation.
- aggregate(Flux<ChatResponse>, Consumer<ChatResponse>) - Method in class org.springframework.ai.chat.model.MessageAggregator
- AI_METADATA_STRING - Static variable in class org.springframework.ai.model.AbstractResponseMetadata
-
AI metadata string format.
- AI_OPERATION_TYPE - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the operation being performed.
- AI_OPERATION_TYPE - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the operation being performed.
- AI_OPERATION_TYPE - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the operation being performed.
- AI_OPERATION_TYPE - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.LowCardinalityKeyNames
-
The name of the operation being performed.
- AI_PROVIDER - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.LowCardinalityKeyNames
-
The model provider as identified by the client instrumentation.
- AI_PROVIDER - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.LowCardinalityKeyNames
-
The model provider as identified by the client instrumentation.
- AI_PROVIDER - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.LowCardinalityKeyNames
-
The model provider as identified by the client instrumentation.
- AI_PROVIDER - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.LowCardinalityKeyNames
-
The provider responsible for the operation.
- aiOperationType(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- aiOperationType(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- aiOperationType(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- aiOperationType(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- aiProvider(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- aiProvider(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- aiProvider(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- aiProvider(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- AiRuntimeHints - Class in org.springframework.ai.aot
-
Utility methods for creating native runtime hints.
- AiRuntimeHints() - Constructor for class org.springframework.ai.aot.AiRuntimeHints
- ALLOW_ADDITIONAL_PROPERTIES_BY_DEFAULT - Enum constant in enum class org.springframework.ai.util.json.schema.JsonSchemaGenerator.SchemaOption
-
Allow an object to contain additional key/values not defined in the schema.
- alwaysThrow(boolean) - Method in class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor.Builder
-
Rethrow the
ToolExecutionException - ANTHROPIC - Static variable in class org.springframework.ai.model.SpringAIModels
- ApiKey - Interface in org.springframework.ai.model
-
Some model providers API leverage short-lived api keys which must be renewed at regular intervals using another credential.
- applicationContext(GenericApplicationContext) - Method in class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver.Builder
- apply(List<Document>) - Method in class org.springframework.ai.model.transformer.KeywordMetadataEnricher
- apply(List<Document>) - Method in class org.springframework.ai.model.transformer.SummaryMetadataEnricher
- applyToConfigBuilder(SchemaGeneratorConfigBuilder) - Method in class org.springframework.ai.model.KotlinModule
- applyToConfigBuilder(SchemaGeneratorConfigBuilder) - Method in class org.springframework.ai.util.json.schema.SpringAiSchemaModule
- arguments() - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Returns the value of the
argumentsrecord component. - ASSISTANT - Enum constant in enum class org.springframework.ai.chat.messages.MessageType
- AssistantMessage - Class in org.springframework.ai.chat.messages
-
Lets the generative know the content was generated as a response to the user.
- AssistantMessage(String) - Constructor for class org.springframework.ai.chat.messages.AssistantMessage
- AssistantMessage(String, Map<String, Object>) - Constructor for class org.springframework.ai.chat.messages.AssistantMessage
- AssistantMessage(String, Map<String, Object>, List<AssistantMessage.ToolCall>) - Constructor for class org.springframework.ai.chat.messages.AssistantMessage
- AssistantMessage(String, Map<String, Object>, List<AssistantMessage.ToolCall>, List<Media>) - Constructor for class org.springframework.ai.chat.messages.AssistantMessage
- AssistantMessage.ToolCall - Record Class in org.springframework.ai.chat.messages
- AssistantPromptTemplate - Class in org.springframework.ai.chat.prompt
- AssistantPromptTemplate(String) - Constructor for class org.springframework.ai.chat.prompt.AssistantPromptTemplate
- AssistantPromptTemplate(Resource) - Constructor for class org.springframework.ai.chat.prompt.AssistantPromptTemplate
- AUDIO - Enum constant in enum class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityType
- AUDIO_SPEECH_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- AUDIO_TRANSCRIPTION_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- AudioTranscription - Class in org.springframework.ai.audio.transcription
-
Represents a response returned by the AI.
- AudioTranscription(String) - Constructor for class org.springframework.ai.audio.transcription.AudioTranscription
- AudioTranscriptionMetadata - Interface in org.springframework.ai.audio.transcription
-
Metadata associated with an audio transcription result.
- AudioTranscriptionOptions - Interface in org.springframework.ai.audio.transcription
-
Options for audio transcription.
- AudioTranscriptionPrompt - Class in org.springframework.ai.audio.transcription
-
Represents an audio transcription prompt for an AI model.
- AudioTranscriptionPrompt(Resource) - Constructor for class org.springframework.ai.audio.transcription.AudioTranscriptionPrompt
-
Construct a new AudioTranscriptionPrompt given the resource representing the audio file.
- AudioTranscriptionPrompt(Resource, AudioTranscriptionOptions) - Constructor for class org.springframework.ai.audio.transcription.AudioTranscriptionPrompt
-
Construct a new AudioTranscriptionPrompt given the resource representing the audio file.
- AudioTranscriptionResponse - Class in org.springframework.ai.audio.transcription
-
A response containing an audio transcription result.
- AudioTranscriptionResponse(AudioTranscription) - Constructor for class org.springframework.ai.audio.transcription.AudioTranscriptionResponse
- AudioTranscriptionResponse(AudioTranscription, AudioTranscriptionResponseMetadata) - Constructor for class org.springframework.ai.audio.transcription.AudioTranscriptionResponse
- AudioTranscriptionResponseMetadata - Class in org.springframework.ai.audio.transcription
-
Metadata associated with an audio transcription response.
- AudioTranscriptionResponseMetadata() - Constructor for class org.springframework.ai.audio.transcription.AudioTranscriptionResponseMetadata
- augmentSystemMessage(String) - Method in class org.springframework.ai.chat.prompt.Prompt
-
Augments the last system message in the prompt with the provided text.
- augmentSystemMessage(Function<SystemMessage, SystemMessage>) - Method in class org.springframework.ai.chat.prompt.Prompt
-
Augments the first system message in the prompt with the provided function.
- augmentUserMessage(String) - Method in class org.springframework.ai.chat.prompt.Prompt
-
Augments the last user message in the prompt with the provided text.
- augmentUserMessage(Function<UserMessage, UserMessage>) - Method in class org.springframework.ai.chat.prompt.Prompt
-
Augments the last user message in the prompt with the provided function.
- AZURE_OPENAI - Static variable in class org.springframework.ai.model.SpringAIModels
B
- BeanOutputConverter<T> - Class in org.springframework.ai.converter
-
An implementation of
StructuredOutputConverterthat transforms the LLM output to a specific object type using JSON schema. - BeanOutputConverter(Class<T>) - Constructor for class org.springframework.ai.converter.BeanOutputConverter
-
Constructor to initialize with the target type's class.
- BeanOutputConverter(Class<T>, ObjectMapper) - Constructor for class org.springframework.ai.converter.BeanOutputConverter
-
Constructor to initialize with the target type's class, a custom object mapper, and a line endings normalizer to ensure consistent line endings on any platform.
- BeanOutputConverter(ParameterizedTypeReference<T>) - Constructor for class org.springframework.ai.converter.BeanOutputConverter
-
Constructor to initialize with the target class type reference.
- BeanOutputConverter(ParameterizedTypeReference<T>, ObjectMapper) - Constructor for class org.springframework.ai.converter.BeanOutputConverter
-
Constructor to initialize with the target class type reference, a custom object mapper, and a line endings normalizer to ensure consistent line endings on any platform.
- BEDROCK_COHERE - Static variable in class org.springframework.ai.model.SpringAIModels
- BEDROCK_CONVERSE - Static variable in class org.springframework.ai.model.SpringAIModels
- BEDROCK_TITAN - Static variable in class org.springframework.ai.model.SpringAIModels
- build() - Method in class org.springframework.ai.chat.memory.MessageWindowChatMemory.Builder
- build() - Method in class org.springframework.ai.chat.messages.SystemMessage.Builder
- build() - Method in class org.springframework.ai.chat.messages.UserMessage.Builder
- build() - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata.Builder
-
Build the Generation metadata.
- build() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- build() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadataBuilder
- build() - Method in class org.springframework.ai.chat.model.ChatResponse.Builder
- build() - Method in class org.springframework.ai.chat.observation.ChatModelObservationContext.Builder
- build() - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Build the
ChatOptions. - build() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- build() - Method in class org.springframework.ai.chat.prompt.Prompt.Builder
- build() - Method in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- build() - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate.Builder
- build() - Method in class org.springframework.ai.embedding.EmbeddingOptionsBuilder
- build() - Method in class org.springframework.ai.embedding.observation.EmbeddingModelObservationContext.Builder
- build() - Method in class org.springframework.ai.image.ImageOptionsBuilder
- build() - Method in class org.springframework.ai.image.observation.ImageModelObservationContext.Builder
- build() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- build() - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager.Builder
- build() - Method in class org.springframework.ai.model.tool.DefaultToolExecutionResult.Builder
- build() - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- build() - Method in class org.springframework.ai.model.transformer.KeywordMetadataEnricher.Builder
- build() - Method in class org.springframework.ai.moderation.Categories.Builder
- build() - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- build() - Method in class org.springframework.ai.moderation.Moderation.Builder
- build() - Method in class org.springframework.ai.moderation.ModerationOptionsBuilder
- build() - Method in class org.springframework.ai.moderation.ModerationResult.Builder
- build() - Method in class org.springframework.ai.tool.definition.DefaultToolDefinition.Builder
- build() - Method in class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor.Builder
- build() - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- build() - Method in class org.springframework.ai.tool.metadata.DefaultToolMetadata.Builder
- build() - Method in class org.springframework.ai.tool.method.MethodToolCallback.Builder
- build() - Method in class org.springframework.ai.tool.method.MethodToolCallbackProvider.Builder
- build() - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext.Builder
- build() - Method in class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver.Builder
- builder() - Static method in class org.springframework.ai.chat.memory.MessageWindowChatMemory
- builder() - Static method in class org.springframework.ai.chat.messages.SystemMessage
- builder() - Static method in class org.springframework.ai.chat.messages.UserMessage
- builder() - Static method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- builder() - Static method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
- builder() - Static method in class org.springframework.ai.chat.model.ChatResponse
- builder() - Static method in class org.springframework.ai.chat.observation.ChatModelObservationContext
- builder() - Static method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Creates a new
ChatOptions.Builderto create the defaultChatOptions. - builder() - Static method in class org.springframework.ai.chat.prompt.Prompt
- builder() - Static method in class org.springframework.ai.chat.prompt.PromptTemplate
- builder() - Static method in class org.springframework.ai.chat.prompt.SystemPromptTemplate
- builder() - Static method in class org.springframework.ai.embedding.EmbeddingOptionsBuilder
- builder() - Static method in class org.springframework.ai.embedding.observation.EmbeddingModelObservationContext
- builder() - Static method in class org.springframework.ai.image.ImageOptionsBuilder
- builder() - Static method in class org.springframework.ai.image.observation.ImageModelObservationContext
- builder() - Static method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- builder() - Static method in class org.springframework.ai.model.tool.DefaultToolCallingManager
- builder() - Static method in record class org.springframework.ai.model.tool.DefaultToolExecutionResult
- builder() - Static method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
A builder to create a new
ToolCallingChatOptionsinstance. - builder() - Static method in interface org.springframework.ai.model.tool.ToolCallingManager
-
Create a default
ToolCallingManagerbuilder. - builder() - Static method in interface org.springframework.ai.model.tool.ToolExecutionResult
-
Create a default
ToolExecutionResultbuilder. - builder() - Static method in class org.springframework.ai.moderation.Categories
- builder() - Static method in class org.springframework.ai.moderation.CategoryScores
- builder() - Static method in class org.springframework.ai.moderation.Moderation
- builder() - Static method in class org.springframework.ai.moderation.ModerationOptionsBuilder
- builder() - Static method in class org.springframework.ai.moderation.ModerationResult
- builder() - Static method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
- builder() - Static method in interface org.springframework.ai.tool.definition.ToolDefinition
-
Create a default
ToolDefinitionbuilder. - builder() - Static method in class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor
- builder() - Static method in record class org.springframework.ai.tool.metadata.DefaultToolMetadata
- builder() - Static method in interface org.springframework.ai.tool.metadata.ToolMetadata
-
Create a default
ToolMetadatabuilder. - builder() - Static method in class org.springframework.ai.tool.method.MethodToolCallback
- builder() - Static method in class org.springframework.ai.tool.method.MethodToolCallbackProvider
- builder() - Static method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- builder() - Static method in class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver
- builder(Method) - Static method in class org.springframework.ai.tool.support.ToolDefinitions
-
Create a default
ToolDefinitionbuilder from aMethod. - builder(String, BiFunction<I, ToolContext, O>) - Static method in class org.springframework.ai.tool.function.FunctionToolCallback
-
Build a
FunctionToolCallbackfrom aBiFunction. - builder(String, Consumer<I>) - Static method in class org.springframework.ai.tool.function.FunctionToolCallback
-
Build a
FunctionToolCallbackfrom aConsumer. - builder(String, Function<I, O>) - Static method in class org.springframework.ai.tool.function.FunctionToolCallback
-
Build a
FunctionToolCallbackfrom aFunction. - builder(String, Supplier<O>) - Static method in class org.springframework.ai.tool.function.FunctionToolCallback
-
Build a
FunctionToolCallbackfrom aSupplier. - builder(ChatModel) - Static method in class org.springframework.ai.model.transformer.KeywordMetadataEnricher
- Builder() - Constructor for class org.springframework.ai.chat.messages.SystemMessage.Builder
- Builder() - Constructor for class org.springframework.ai.chat.messages.UserMessage.Builder
- Builder() - Constructor for class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- Builder() - Constructor for class org.springframework.ai.chat.prompt.Prompt.Builder
- Builder() - Constructor for class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- Builder() - Constructor for class org.springframework.ai.chat.prompt.SystemPromptTemplate.Builder
- Builder() - Constructor for class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- Builder() - Constructor for class org.springframework.ai.moderation.Categories.Builder
- Builder() - Constructor for class org.springframework.ai.moderation.CategoryScores.Builder
- Builder() - Constructor for class org.springframework.ai.moderation.Moderation.Builder
- Builder() - Constructor for class org.springframework.ai.moderation.ModerationResult.Builder
- Builder() - Constructor for class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor.Builder
- Builder() - Constructor for class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver.Builder
- Builder(ChatModel) - Constructor for class org.springframework.ai.model.transformer.KeywordMetadataEnricher.Builder
- buildGenerations(ToolExecutionResult) - Static method in interface org.springframework.ai.model.tool.ToolExecutionResult
-
Build a list of
Generationfrom the tool execution result, useful for sending the tool execution result to the client directly.
C
- call(String) - Method in interface org.springframework.ai.chat.model.ChatModel
- call(String) - Method in class org.springframework.ai.tool.function.FunctionToolCallback
- call(String) - Method in class org.springframework.ai.tool.method.MethodToolCallback
- call(String) - Method in interface org.springframework.ai.tool.ToolCallback
-
Execute tool with the given input and return the result to send back to the AI model.
- call(String, ToolContext) - Method in class org.springframework.ai.tool.function.FunctionToolCallback
- call(String, ToolContext) - Method in class org.springframework.ai.tool.method.MethodToolCallback
- call(String, ToolContext) - Method in interface org.springframework.ai.tool.ToolCallback
-
Execute tool with the given input and context, and return the result to send back to the AI model.
- call(Message...) - Method in interface org.springframework.ai.chat.model.ChatModel
- call(Prompt) - Method in interface org.springframework.ai.chat.model.ChatModel
- call(DocumentEmbeddingRequest) - Method in interface org.springframework.ai.embedding.DocumentEmbeddingModel
- call(EmbeddingRequest) - Method in interface org.springframework.ai.embedding.EmbeddingModel
- call(ImagePrompt) - Method in interface org.springframework.ai.image.ImageModel
- call(ModerationPrompt) - Method in interface org.springframework.ai.moderation.ModerationModel
- call(TReq) - Method in interface org.springframework.ai.model.Model
-
Executes a method call to the AI model.
- categories(Categories) - Method in class org.springframework.ai.moderation.ModerationResult.Builder
- Categories - Class in org.springframework.ai.moderation
-
The Categories class represents a set of categories used to classify content.
- Categories.Builder - Class in org.springframework.ai.moderation
- categoryScores(CategoryScores) - Method in class org.springframework.ai.moderation.ModerationResult.Builder
- CategoryScores - Class in org.springframework.ai.moderation
-
This class represents the scores for different categories of content.
- CategoryScores.Builder - Class in org.springframework.ai.moderation
- CHAT_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- CHAT_MODEL_OPERATION - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation
- ChatGenerationMetadata - Interface in org.springframework.ai.chat.metadata
-
Represents the metadata associated with the generation of a chat response.
- ChatGenerationMetadata.Builder - Interface in org.springframework.ai.chat.metadata
- ChatMemory - Interface in org.springframework.ai.chat.memory
-
The contract for storing and managing the memory of chat conversations.
- chatMemoryRepository(ChatMemoryRepository) - Method in class org.springframework.ai.chat.memory.MessageWindowChatMemory.Builder
- ChatMemoryRepository - Interface in org.springframework.ai.chat.memory
-
A repository for storing and retrieving chat messages.
- ChatModel - Interface in org.springframework.ai.chat.model
- ChatModelCompletionObservationHandler - Class in org.springframework.ai.chat.observation
-
Handler for emitting the chat completion content to logs.
- ChatModelCompletionObservationHandler() - Constructor for class org.springframework.ai.chat.observation.ChatModelCompletionObservationHandler
- ChatModelDescription - Interface in org.springframework.ai.model
-
Marker interface, to be used to store info on the model such as the current context length.
- ChatModelMeterObservationHandler - Class in org.springframework.ai.chat.observation
-
Handler for generating metrics from chat model observations.
- ChatModelMeterObservationHandler(MeterRegistry) - Constructor for class org.springframework.ai.chat.observation.ChatModelMeterObservationHandler
- ChatModelObservationContext - Class in org.springframework.ai.chat.observation
-
Context used to store metadata for chat model exchanges.
- ChatModelObservationContext.Builder - Class in org.springframework.ai.chat.observation
- ChatModelObservationConvention - Interface in org.springframework.ai.chat.observation
-
Interface for an
ObservationConventionfor chat model exchanges. - ChatModelObservationDocumentation - Enum Class in org.springframework.ai.chat.observation
-
Documented conventions for chat model observations.
- ChatModelObservationDocumentation.HighCardinalityKeyNames - Enum Class in org.springframework.ai.chat.observation
-
High-cardinality observation key names for chat model operations.
- ChatModelObservationDocumentation.LowCardinalityKeyNames - Enum Class in org.springframework.ai.chat.observation
-
Low-cardinality observation key names for chat model operations.
- ChatModelPromptContentObservationHandler - Class in org.springframework.ai.chat.observation
-
Handler for emitting the chat prompt content to logs.
- ChatModelPromptContentObservationHandler() - Constructor for class org.springframework.ai.chat.observation.ChatModelPromptContentObservationHandler
- chatOptions(ChatOptions) - Method in class org.springframework.ai.chat.prompt.Prompt.Builder
- ChatOptions - Interface in org.springframework.ai.chat.prompt
-
ModelOptionsrepresenting the common options that are portable across different chat models. - ChatOptions.Builder - Interface in org.springframework.ai.chat.prompt
-
Builder for creating
ChatOptionsinstance. - ChatPromptTemplate - Class in org.springframework.ai.chat.prompt
-
A PromptTemplate that lets you specify the role as a string should the current implementations and their roles not suffice for your needs.
- ChatPromptTemplate(List<PromptTemplate>) - Constructor for class org.springframework.ai.chat.prompt.ChatPromptTemplate
- ChatResponse - Class in org.springframework.ai.chat.model
-
The chat completion (e.g.
- ChatResponse(List<Generation>) - Constructor for class org.springframework.ai.chat.model.ChatResponse
-
Construct a new
ChatResponseinstance without metadata. - ChatResponse(List<Generation>, ChatResponseMetadata) - Constructor for class org.springframework.ai.chat.model.ChatResponse
-
Construct a new
ChatResponseinstance. - ChatResponse.Builder - Class in org.springframework.ai.chat.model
- ChatResponseMetadata - Class in org.springframework.ai.chat.metadata
-
Models common AI provider metadata returned in an AI response.
- ChatResponseMetadata() - Constructor for class org.springframework.ai.chat.metadata.ChatResponseMetadata
- ChatResponseMetadata.Builder - Class in org.springframework.ai.chat.metadata
- clear() - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Clears the entries from the context.
- clear(String) - Method in interface org.springframework.ai.chat.memory.ChatMemory
-
Clear the chat memory for the specified conversation.
- clear(String) - Method in class org.springframework.ai.chat.memory.MessageWindowChatMemory
- completionTokens() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Returns the value of the
completionTokensrecord component. - computeIfAbsent(String, Function<Object, ? extends T>) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Returns an element or calls a mapping function if entry not present.
- containsKey(Object) - Method in class org.springframework.ai.model.AbstractResponseMetadata
-
Checks if context contains a key.
- containsKey(Object) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Checks if context contains a key.
- containsKey(Object) - Method in interface org.springframework.ai.model.ResponseMetadata
-
Checks if context contains a key.
- containsKey(String) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- containsKey(String) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- content(String) - Method in class org.springframework.ai.chat.prompt.Prompt.Builder
- contentFilter(String) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata.Builder
-
Add content filter to the Generation result.
- contentFilter(String) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadataBuilder
- contentFilters(Set<String>) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata.Builder
-
Add content filters to the Generation result.
- contentFilters(Set<String>) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadataBuilder
- CONTEXT_STR_PLACEHOLDER - Static variable in class org.springframework.ai.model.transformer.KeywordMetadataEnricher
- CONVERSATION_ID - Static variable in interface org.springframework.ai.chat.memory.ChatMemory
-
The key to retrieve the chat memory conversation id from the context.
- conversationHistory() - Method in record class org.springframework.ai.model.tool.DefaultToolExecutionResult
-
Returns the value of the
conversationHistoryrecord component. - conversationHistory() - Method in interface org.springframework.ai.model.tool.ToolExecutionResult
-
The history of messages exchanged during the conversation, including the tool execution result.
- conversationHistory(List<Message>) - Method in class org.springframework.ai.model.tool.DefaultToolExecutionResult.Builder
- convert(Object, Type) - Method in class org.springframework.ai.tool.execution.DefaultToolCallResultConverter
- convert(Object, Type) - Method in interface org.springframework.ai.tool.execution.ToolCallResultConverter
-
Given an Object returned by a tool, convert it to a String compatible with the given class type.
- convert(String) - Method in class org.springframework.ai.converter.BeanOutputConverter
-
Parses the given text to transform it to the desired target type.
- convert(String) - Method in class org.springframework.ai.converter.ListOutputConverter
- convert(String) - Method in class org.springframework.ai.converter.MapOutputConverter
- convertTypeValuesToUpperCase(ObjectNode) - Static method in class org.springframework.ai.util.json.schema.JsonSchemaGenerator
- copy() - Method in class org.springframework.ai.chat.messages.SystemMessage
- copy() - Method in class org.springframework.ai.chat.messages.UserMessage
- copy() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns a copy of this
ChatOptions. - copy() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- copy() - Method in class org.springframework.ai.chat.prompt.Prompt
- copy() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- copyToTarget(S, Class<I>, Class<T>) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Returns a new instance of the targetBeanClazz that copies the bean values from the sourceBean instance.
- create() - Static method in interface org.springframework.ai.audio.transcription.AudioTranscriptionMetadata
-
Factory method used to construct a new
AudioTranscriptionMetadata - create() - Method in class org.springframework.ai.chat.prompt.AssistantPromptTemplate
- create() - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- create() - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- create() - Method in interface org.springframework.ai.chat.prompt.PromptTemplateActions
- create() - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate
- create(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.AssistantPromptTemplate
- create(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- create(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- create(Map<String, Object>) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateActions
- create(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate
- create(Map<String, Object>, ChatOptions) - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- create(Map<String, Object>, ChatOptions) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- create(Map<String, Object>, ChatOptions) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateActions
- create(ChatOptions) - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- create(ChatOptions) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- create(ChatOptions) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateActions
- createMessage() - Method in class org.springframework.ai.chat.prompt.AssistantPromptTemplate
- createMessage() - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- createMessage() - Method in interface org.springframework.ai.chat.prompt.PromptTemplateMessageActions
- createMessage() - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate
- createMessage(List<Media>) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- createMessage(List<Media>) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateMessageActions
- createMessage(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.AssistantPromptTemplate
- createMessage(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- createMessage(Map<String, Object>) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateMessageActions
- createMessage(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate
- createMessages() - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- createMessages() - Method in interface org.springframework.ai.chat.prompt.PromptTemplateChatActions
- createMessages(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- createMessages(Map<String, Object>) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateChatActions
- CURRENT - Enum constant in enum class org.springframework.ai.model.transformer.SummaryMetadataEnricher.SummaryType
D
- dangerousAndCriminalContent(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- dangerousAndCriminalContent(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- DEEPSEEK - Static variable in class org.springframework.ai.model.SpringAIModels
- DEFAULT_CONVERSATION_ID - Static variable in interface org.springframework.ai.chat.memory.ChatMemory
- DEFAULT_NAME - Static variable in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- DEFAULT_NAME - Static variable in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- DEFAULT_NAME - Static variable in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- DEFAULT_NAME - Static variable in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- DEFAULT_SUMMARY_EXTRACT_TEMPLATE - Static variable in class org.springframework.ai.model.transformer.SummaryMetadataEnricher
- DEFAULT_TOOL_EXECUTION_ENABLED - Static variable in interface org.springframework.ai.model.tool.ToolCallingChatOptions
- DefaultChatGenerationMetadata - Class in org.springframework.ai.chat.metadata
-
Default implementation of
ChatGenerationMetadata. - DefaultChatGenerationMetadataBuilder - Class in org.springframework.ai.chat.metadata
- DefaultChatModelObservationConvention - Class in org.springframework.ai.chat.observation
-
Default conventions to populate observations for chat model operations.
- DefaultChatModelObservationConvention() - Constructor for class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- DefaultChatOptions - Class in org.springframework.ai.chat.prompt
-
Default implementation for the
ChatOptions. - DefaultChatOptions() - Constructor for class org.springframework.ai.chat.prompt.DefaultChatOptions
- DefaultChatOptionsBuilder - Class in org.springframework.ai.chat.prompt
-
Implementation of
ChatOptions.Builderto createDefaultChatOptions. - DefaultChatOptionsBuilder() - Constructor for class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- DefaultChatOptionsBuilder(DefaultChatOptions) - Constructor for class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- DefaultEmbeddingModelObservationConvention - Class in org.springframework.ai.embedding.observation
-
Default conventions to populate observations for embedding model operations.
- DefaultEmbeddingModelObservationConvention() - Constructor for class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- DefaultImageModelObservationConvention - Class in org.springframework.ai.image.observation
-
Default conventions to populate observations for image model operations.
- DefaultImageModelObservationConvention() - Constructor for class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- DefaultToolCallingChatOptions - Class in org.springframework.ai.model.tool
-
Default implementation of
ToolCallingChatOptions. - DefaultToolCallingChatOptions() - Constructor for class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- DefaultToolCallingChatOptions.Builder - Class in org.springframework.ai.model.tool
-
Default implementation of
ToolCallingChatOptions.Builder. - DefaultToolCallingManager - Class in org.springframework.ai.model.tool
-
Default implementation of
ToolCallingManager. - DefaultToolCallingManager(ObservationRegistry, ToolCallbackResolver, ToolExecutionExceptionProcessor) - Constructor for class org.springframework.ai.model.tool.DefaultToolCallingManager
- DefaultToolCallingManager.Builder - Class in org.springframework.ai.model.tool
- DefaultToolCallingObservationConvention - Class in org.springframework.ai.tool.observation
-
Default conventions to populate observations for tool calling operations.
- DefaultToolCallingObservationConvention() - Constructor for class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- DefaultToolCallingObservationConvention(String) - Constructor for class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- DefaultToolCallResultConverter - Class in org.springframework.ai.tool.execution
-
A default implementation of
ToolCallResultConverter. - DefaultToolCallResultConverter() - Constructor for class org.springframework.ai.tool.execution.DefaultToolCallResultConverter
- DefaultToolDefinition - Record Class in org.springframework.ai.tool.definition
-
Default implementation of
ToolDefinition. - DefaultToolDefinition(String, String, String) - Constructor for record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Creates an instance of a
DefaultToolDefinitionrecord class. - DefaultToolDefinition.Builder - Class in org.springframework.ai.tool.definition
- DefaultToolExecutionEligibilityPredicate - Class in org.springframework.ai.model.tool
-
Default implementation of
ToolExecutionEligibilityPredicatethat checks whether tool execution is enabled in the prompt options and if the chat response contains tool calls. - DefaultToolExecutionEligibilityPredicate() - Constructor for class org.springframework.ai.model.tool.DefaultToolExecutionEligibilityPredicate
- DefaultToolExecutionExceptionProcessor - Class in org.springframework.ai.tool.execution
-
Default implementation of
ToolExecutionExceptionProcessor. - DefaultToolExecutionExceptionProcessor(boolean) - Constructor for class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor
- DefaultToolExecutionExceptionProcessor(boolean, List<Class<? extends RuntimeException>>) - Constructor for class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor
- DefaultToolExecutionExceptionProcessor.Builder - Class in org.springframework.ai.tool.execution
- DefaultToolExecutionResult - Record Class in org.springframework.ai.model.tool
-
Default implementation of
ToolExecutionResult. - DefaultToolExecutionResult(List<Message>, boolean) - Constructor for record class org.springframework.ai.model.tool.DefaultToolExecutionResult
-
Creates an instance of a
DefaultToolExecutionResultrecord class. - DefaultToolExecutionResult.Builder - Class in org.springframework.ai.model.tool
- DefaultToolMetadata - Record Class in org.springframework.ai.tool.metadata
-
Default implementation of
ToolMetadata. - DefaultToolMetadata(boolean) - Constructor for record class org.springframework.ai.tool.metadata.DefaultToolMetadata
-
Creates an instance of a
DefaultToolMetadatarecord class. - DefaultToolMetadata.Builder - Class in org.springframework.ai.tool.metadata
- DefaultUsage - Class in org.springframework.ai.chat.metadata
-
Default implementation of the
Usageinterface. - DefaultUsage(Integer, Integer) - Constructor for class org.springframework.ai.chat.metadata.DefaultUsage
-
Create a new DefaultUsage with promptTokens and completionTokens.
- DefaultUsage(Integer, Integer, Integer) - Constructor for class org.springframework.ai.chat.metadata.DefaultUsage
-
Create a new DefaultUsage with promptTokens, completionTokens, and totalTokens.
- DefaultUsage(Integer, Integer, Integer) - Constructor for record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Creates an instance of a
DefaultUsagerecord class. - DefaultUsage(Integer, Integer, Integer, Object) - Constructor for class org.springframework.ai.chat.metadata.DefaultUsage
-
Create a new DefaultUsage with promptTokens, completionTokens, totalTokens and native
Usageobject. - DelegatingToolCallbackResolver - Class in org.springframework.ai.tool.resolution
-
A
ToolCallbackResolverthat delegates to a list ofToolCallbackResolverinstances. - DelegatingToolCallbackResolver(List<ToolCallbackResolver>) - Constructor for class org.springframework.ai.tool.resolution.DelegatingToolCallbackResolver
- deleteByConversationId(String) - Method in interface org.springframework.ai.chat.memory.ChatMemoryRepository
- deleteByConversationId(String) - Method in class org.springframework.ai.chat.memory.InMemoryChatMemoryRepository
- description() - Element in annotation interface org.springframework.ai.tool.annotation.Tool
-
The description of the tool.
- description() - Element in annotation interface org.springframework.ai.tool.annotation.ToolParam
-
The description of the tool argument.
- description() - Method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Returns the value of the
descriptionrecord component. - description() - Method in interface org.springframework.ai.tool.definition.ToolDefinition
-
The tool description, used by the AI model to determine what the tool does.
- description(String) - Method in class org.springframework.ai.tool.definition.DefaultToolDefinition.Builder
- description(String) - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- dimensions() - Method in class org.springframework.ai.embedding.AbstractEmbeddingModel
- dimensions() - Method in interface org.springframework.ai.embedding.DocumentEmbeddingModel
- dimensions() - Method in interface org.springframework.ai.embedding.EmbeddingModel
-
Get the number of dimensions of the embedded vectors.
- dimensions(EmbeddingModel, String, String) - Static method in class org.springframework.ai.embedding.AbstractEmbeddingModel
-
Return the dimension of the requested embedding generative name.
- DocumentEmbeddingModel - Interface in org.springframework.ai.embedding
-
EmbeddingModel is a generic interface for embedding models.
- DocumentEmbeddingRequest - Class in org.springframework.ai.embedding
-
Represents a request to embed a list of documents.
- DocumentEmbeddingRequest(List<Document>) - Constructor for class org.springframework.ai.embedding.DocumentEmbeddingRequest
- DocumentEmbeddingRequest(List<Document>, EmbeddingOptions) - Constructor for class org.springframework.ai.embedding.DocumentEmbeddingRequest
- DocumentEmbeddingRequest(Document...) - Constructor for class org.springframework.ai.embedding.DocumentEmbeddingRequest
- doubleToFloat(List<Double>) - Static method in class org.springframework.ai.model.EmbeddingUtils
E
- embed(String) - Method in interface org.springframework.ai.embedding.EmbeddingModel
-
Embeds the given text into a vector.
- embed(List<String>) - Method in interface org.springframework.ai.embedding.EmbeddingModel
-
Embeds a batch of texts into vectors.
- embed(List<Document>, EmbeddingOptions, BatchingStrategy) - Method in interface org.springframework.ai.embedding.EmbeddingModel
-
Embeds a batch of
Documents into vectors based on aBatchingStrategy. - embed(Document) - Method in interface org.springframework.ai.embedding.EmbeddingModel
-
Embeds the given document's content into a vector.
- Embedding - Class in org.springframework.ai.embedding
-
Represents a single embedding vector.
- Embedding(float[], Integer) - Constructor for class org.springframework.ai.embedding.Embedding
-
Creates a new
Embeddinginstance. - Embedding(float[], Integer, EmbeddingResultMetadata) - Constructor for class org.springframework.ai.embedding.Embedding
-
Creates a new
Embeddinginstance. - EMBEDDING_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- EMBEDDING_MODEL_OPERATION - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation
- embeddingDimensions - Variable in class org.springframework.ai.embedding.AbstractEmbeddingModel
-
Cached embedding dimensions.
- EmbeddingModel - Interface in org.springframework.ai.embedding
-
EmbeddingModel is a generic interface for embedding models.
- EmbeddingModelDescription - Interface in org.springframework.ai.model
-
Description of an embedding model.
- EmbeddingModelMeterObservationHandler - Class in org.springframework.ai.embedding.observation
-
Handler for generating metrics from embedding model observations.
- EmbeddingModelMeterObservationHandler(MeterRegistry) - Constructor for class org.springframework.ai.embedding.observation.EmbeddingModelMeterObservationHandler
- EmbeddingModelObservationContext - Class in org.springframework.ai.embedding.observation
-
Context used to store metadata for embedding model exchanges.
- EmbeddingModelObservationContext.Builder - Class in org.springframework.ai.embedding.observation
- EmbeddingModelObservationConvention - Interface in org.springframework.ai.embedding.observation
-
Interface for an
ObservationConventionfor embedding model exchanges. - EmbeddingModelObservationDocumentation - Enum Class in org.springframework.ai.embedding.observation
-
Documented conventions for embedding model observations.
- EmbeddingModelObservationDocumentation.HighCardinalityKeyNames - Enum Class in org.springframework.ai.embedding.observation
-
High-cardinality observation key names for embedding model operations.
- EmbeddingModelObservationDocumentation.LowCardinalityKeyNames - Enum Class in org.springframework.ai.embedding.observation
-
Low-cardinality observation key names for embedding model operations.
- EmbeddingOptions - Interface in org.springframework.ai.embedding
-
Options for embedding models.
- EmbeddingOptionsBuilder - Class in org.springframework.ai.embedding
-
Builder for
EmbeddingOptions. - embeddingRequest(EmbeddingRequest) - Method in class org.springframework.ai.embedding.observation.EmbeddingModelObservationContext.Builder
- EmbeddingRequest - Class in org.springframework.ai.embedding
-
Request to embed a list of input instructions.
- EmbeddingRequest(List<String>, EmbeddingOptions) - Constructor for class org.springframework.ai.embedding.EmbeddingRequest
- EmbeddingResponse - Class in org.springframework.ai.embedding
-
Embedding response object.
- EmbeddingResponse(List<Embedding>) - Constructor for class org.springframework.ai.embedding.EmbeddingResponse
-
Creates a new
EmbeddingResponseinstance with empty metadata. - EmbeddingResponse(List<Embedding>, EmbeddingResponseMetadata) - Constructor for class org.springframework.ai.embedding.EmbeddingResponse
-
Creates a new
EmbeddingResponseinstance. - EmbeddingResponseMetadata - Class in org.springframework.ai.embedding
-
Common AI provider metadata returned in an embedding response.
- EmbeddingResponseMetadata() - Constructor for class org.springframework.ai.embedding.EmbeddingResponseMetadata
- EmbeddingResponseMetadata(String, Usage) - Constructor for class org.springframework.ai.embedding.EmbeddingResponseMetadata
- EmbeddingResponseMetadata(String, Usage, Map<String, Object>) - Constructor for class org.springframework.ai.embedding.EmbeddingResponseMetadata
- EmbeddingResultMetadata - Class in org.springframework.ai.embedding
-
Metadata associated with the embedding result.
- EmbeddingResultMetadata() - Constructor for class org.springframework.ai.embedding.EmbeddingResultMetadata
- EmbeddingResultMetadata(String, EmbeddingResultMetadata.ModalityType, MimeType, Object) - Constructor for class org.springframework.ai.embedding.EmbeddingResultMetadata
- EmbeddingResultMetadata.ModalityType - Enum Class in org.springframework.ai.embedding
- EmbeddingResultMetadata.ModalityUtils - Class in org.springframework.ai.embedding
- EmbeddingUtils - Class in org.springframework.ai.model
-
Utility methods for embedding related operations.
- embedForResponse(List<String>) - Method in interface org.springframework.ai.embedding.EmbeddingModel
-
Embeds a batch of texts into vectors and returns the
EmbeddingResponse. - empty() - Static method in interface org.springframework.ai.chat.metadata.PromptMetadata
-
Factory method used to create empty
PromptMetadatawhen the information is not supplied by the AI provider. - EMPTY - Static variable in class org.springframework.ai.embedding.EmbeddingResultMetadata
- EmptyRateLimit - Class in org.springframework.ai.chat.metadata
-
A RateLimit implementation that returns zero for all property getters
- EmptyRateLimit() - Constructor for class org.springframework.ai.chat.metadata.EmptyRateLimit
- EmptyUsage - Class in org.springframework.ai.chat.metadata
-
A EmptyUsage implementation that returns zero for all property getters
- EmptyUsage() - Constructor for class org.springframework.ai.chat.metadata.EmptyUsage
- entrySet() - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- entrySet() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- entrySet() - Method in class org.springframework.ai.model.AbstractResponseMetadata
- entrySet() - Method in class org.springframework.ai.model.MutableResponseMetadata
- entrySet() - Method in interface org.springframework.ai.model.ResponseMetadata
- equals(Object) - Method in class org.springframework.ai.audio.transcription.AudioTranscription
- equals(Object) - Method in class org.springframework.ai.chat.messages.AbstractMessage
- equals(Object) - Method in class org.springframework.ai.chat.messages.AssistantMessage
- equals(Object) - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class org.springframework.ai.chat.messages.SystemMessage
- equals(Object) - Method in class org.springframework.ai.chat.messages.ToolResponseMessage
- equals(Object) - Method in record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
- equals(Object) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- equals(Object) - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- equals(Object) - Method in class org.springframework.ai.chat.model.ChatResponse
- equals(Object) - Method in class org.springframework.ai.chat.model.Generation
- equals(Object) - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class org.springframework.ai.chat.prompt.Prompt
- equals(Object) - Method in class org.springframework.ai.embedding.Embedding
- equals(Object) - Method in class org.springframework.ai.embedding.EmbeddingResponse
- equals(Object) - Method in class org.springframework.ai.image.Image
- equals(Object) - Method in class org.springframework.ai.image.ImageMessage
- equals(Object) - Method in class org.springframework.ai.image.ImagePrompt
- equals(Object) - Method in class org.springframework.ai.image.ImageResponse
- equals(Object) - Method in record class org.springframework.ai.model.SimpleApiKey
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.model.tool.DefaultToolExecutionResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class org.springframework.ai.moderation.Categories
- equals(Object) - Method in class org.springframework.ai.moderation.CategoryScores
- equals(Object) - Method in class org.springframework.ai.moderation.Moderation
- equals(Object) - Method in class org.springframework.ai.moderation.ModerationMessage
- equals(Object) - Method in class org.springframework.ai.moderation.ModerationPrompt
- equals(Object) - Method in class org.springframework.ai.moderation.ModerationResponse
- equals(Object) - Method in class org.springframework.ai.moderation.ModerationResult
- equals(Object) - Method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.tool.metadata.DefaultToolMetadata
-
Indicates whether some other object is "equal to" this one.
- ErrorLoggingObservationHandler - Class in org.springframework.ai.model.observation
-
An
ObservationHandlerthat logs errors using aTracer. - ErrorLoggingObservationHandler(Tracer, List<Class<? extends Observation.Context>>) - Constructor for class org.springframework.ai.model.observation.ErrorLoggingObservationHandler
- ErrorLoggingObservationHandler(Tracer, List<Class<? extends Observation.Context>>, Consumer<Observation.Context>) - Constructor for class org.springframework.ai.model.observation.ErrorLoggingObservationHandler
- EXCERPT_KEYWORDS_METADATA_KEY - Static variable in class org.springframework.ai.model.transformer.KeywordMetadataEnricher
- executeToolCalls(Prompt, ChatResponse) - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager
- executeToolCalls(Prompt, ChatResponse) - Method in interface org.springframework.ai.model.tool.ToolCallingManager
-
Execute the tool calls requested by the model.
F
- financial(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- financial(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- findByConversationId(String) - Method in interface org.springframework.ai.chat.memory.ChatMemoryRepository
- findByConversationId(String) - Method in class org.springframework.ai.chat.memory.InMemoryChatMemoryRepository
- findByPromptIndex(int) - Method in interface org.springframework.ai.chat.metadata.PromptMetadata
-
Returns an
OptionalPromptMetadata.PromptFilterMetadataat the given index. - findClassesInPackage(String, TypeFilter) - Static method in class org.springframework.ai.aot.AiRuntimeHints
-
Finds all classes in the specified package that match the given type filter.
- findConversationIds() - Method in interface org.springframework.ai.chat.memory.ChatMemoryRepository
- findConversationIds() - Method in class org.springframework.ai.chat.memory.InMemoryChatMemoryRepository
- findJsonAnnotatedClassesInPackage(Class<?>) - Static method in class org.springframework.ai.aot.AiRuntimeHints
-
Finds classes in a package that are annotated with JsonInclude or have Jackson annotations.
- findJsonAnnotatedClassesInPackage(String) - Static method in class org.springframework.ai.aot.AiRuntimeHints
-
Finds classes in a package that are annotated with JsonInclude or have Jackson annotations.
- FINISH_REASON - Static variable in interface org.springframework.ai.model.tool.ToolExecutionResult
- finishReason(String) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata.Builder
-
Set the reason this choice completed for the generation.
- finishReason(String) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadataBuilder
- flagged(boolean) - Method in class org.springframework.ai.moderation.ModerationResult.Builder
- FormatProvider - Interface in org.springframework.ai.converter
-
Implementations of this interface provides instructions for how the output of a language generative should be formatted.
- frequencyPenalty(Double) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the frequency penalty to use for the chat.
- frequencyPenalty(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- frequencyPenalty(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- frequencyPenalty(Double) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- from(int, Object) - Static method in interface org.springframework.ai.chat.metadata.PromptMetadata.PromptFilterMetadata
-
Factory method used to construct a new
PromptMetadata.PromptFilterMetadatawith the given prompt index and content filter metadata. - from(Object...) - Static method in class org.springframework.ai.support.ToolCallbacks
- from(Method) - Static method in interface org.springframework.ai.tool.metadata.ToolMetadata
-
Create a default
ToolMetadatainstance from aMethod. - from(Method) - Static method in class org.springframework.ai.tool.support.ToolDefinitions
-
Create a default
ToolDefinitioninstance from aMethod. - from(List<? extends ToolCallback>) - Static method in interface org.springframework.ai.tool.ToolCallbackProvider
- from(ChatResponse) - Method in class org.springframework.ai.chat.model.ChatResponse.Builder
- from(ToolCallback...) - Static method in interface org.springframework.ai.tool.ToolCallbackProvider
- fromJson(Integer, Integer, Integer, Object) - Static method in class org.springframework.ai.chat.metadata.DefaultUsage
-
Create a new DefaultUsage with promptTokens, completionTokens, and totalTokens.
- fromJson(String, TypeReference<T>) - Static method in class org.springframework.ai.util.json.JsonParser
-
Converts a JSON string to a Java object.
- fromJson(String, Class<T>) - Static method in class org.springframework.ai.util.json.JsonParser
-
Converts a JSON string to a Java object.
- fromJson(String, Type) - Static method in class org.springframework.ai.util.json.JsonParser
-
Converts a JSON string to a Java object.
- fromValue(String) - Static method in enum class org.springframework.ai.chat.messages.MessageType
- FunctionPromptTemplate - Class in org.springframework.ai.chat.prompt
- FunctionPromptTemplate(String) - Constructor for class org.springframework.ai.chat.prompt.FunctionPromptTemplate
- FunctionToolCallback<I,
O> - Class in org.springframework.ai.tool.function -
A
ToolCallbackimplementation to invoke functions as tools. - FunctionToolCallback(ToolDefinition, ToolMetadata, Type, BiFunction<I, ToolContext, O>, ToolCallResultConverter) - Constructor for class org.springframework.ai.tool.function.FunctionToolCallback
- FunctionToolCallback.Builder<I,
O> - Class in org.springframework.ai.tool.function
G
- generate(Usage, Observation.Context, MeterRegistry) - Static method in class org.springframework.ai.model.observation.ModelUsageMetricsGenerator
- generateForMethodInput(Method, JsonSchemaGenerator.SchemaOption...) - Static method in class org.springframework.ai.util.json.schema.JsonSchemaGenerator
-
Generate a JSON Schema for a method's input parameters.
- generateForType(Type, JsonSchemaGenerator.SchemaOption...) - Static method in class org.springframework.ai.util.json.schema.JsonSchemaGenerator
-
Generate a JSON Schema for a class type.
- Generation - Class in org.springframework.ai.chat.model
-
Represents a response returned by the AI.
- Generation - Class in org.springframework.ai.moderation
-
The Generation class represents a response from a moderation process.
- Generation() - Constructor for class org.springframework.ai.moderation.Generation
- Generation(AssistantMessage) - Constructor for class org.springframework.ai.chat.model.Generation
- Generation(AssistantMessage, ChatGenerationMetadata) - Constructor for class org.springframework.ai.chat.model.Generation
- Generation(Moderation) - Constructor for class org.springframework.ai.moderation.Generation
- Generation(Moderation, ModerationGenerationMetadata) - Constructor for class org.springframework.ai.moderation.Generation
- generationMetadata(ModerationGenerationMetadata) - Method in class org.springframework.ai.moderation.Generation
- generations(List<Generation>) - Method in class org.springframework.ai.chat.model.ChatResponse.Builder
- get(String) - Method in interface org.springframework.ai.chat.memory.ChatMemory
-
Get the messages in the chat memory for the specified conversation.
- get(String) - Method in class org.springframework.ai.chat.memory.MessageWindowChatMemory
- get(String) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- get(String) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- get(String) - Method in class org.springframework.ai.model.AbstractResponseMetadata
-
Gets an entry from the context.
- get(String) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Gets an entry from the context.
- get(String) - Method in interface org.springframework.ai.model.ResponseMetadata
-
Gets an entry from the context.
- getB64Json() - Method in class org.springframework.ai.image.Image
- getBiFunctionArgumentClass(Class<? extends BiFunction<?, ?, ?>>, int) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Retrieves the class of a specific argument in a given function class.
- getBiFunctionInputClass(Class<? extends BiFunction<?, ?, ?>>) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Returns the input class of a given function class.
- getCategories() - Method in class org.springframework.ai.moderation.ModerationResult
- getCategoryScores() - Method in class org.springframework.ai.moderation.ModerationResult
- getCompletionTokens() - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- getCompletionTokens() - Method in class org.springframework.ai.chat.metadata.EmptyUsage
- getCompletionTokens() - Method in interface org.springframework.ai.chat.metadata.Usage
-
Returns the number of tokens returned in the generation (aka completion) of the AI's response.
- getCompletionTokens() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
- getConsumerInputClass(Class<? extends Consumer<?>>) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Returns the input class of a given Consumer class.
- getContentFilterMetadata() - Method in interface org.springframework.ai.chat.metadata.PromptMetadata.PromptFilterMetadata
-
Returns the underlying AI provider metadata for filtering applied to prompt content.
- getContentFilters() - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- getContentFilters() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- getContents() - Method in class org.springframework.ai.chat.prompt.Prompt
- getContext() - Method in class org.springframework.ai.chat.model.ToolContext
-
Returns the immutable context map.
- getContextualName(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- getContextualName(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- getContextualName(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- getContextualName(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- getConversionService() - Method in class org.springframework.ai.converter.AbstractConversionServiceOutputConverter
-
Return the ConversionService used by this converter.
- getCreated() - Method in class org.springframework.ai.image.ImageResponseMetadata
- getCumulativeUsage(Usage, ChatResponse) - Static method in class org.springframework.ai.support.UsageCalculator
-
Accumulate usage tokens from the previous chat response to the current usage tokens.
- getDangerousAndCriminalContent() - Method in class org.springframework.ai.moderation.CategoryScores
- getDefaultOptions() - Method in interface org.springframework.ai.chat.model.ChatModel
- getDescription() - Method in interface org.springframework.ai.model.ModelDescription
-
Returns the description of the model.
- getDimensions() - Method in interface org.springframework.ai.embedding.EmbeddingOptions
- getDimensions() - Method in interface org.springframework.ai.model.EmbeddingModelDescription
- getDocumentData() - Method in class org.springframework.ai.embedding.EmbeddingResultMetadata
- getDocumentId() - Method in class org.springframework.ai.embedding.EmbeddingResultMetadata
- getDuplicateToolNames(List<ToolCallback>) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getDuplicateToolNames(ToolCallback...) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getFinancial() - Method in class org.springframework.ai.moderation.CategoryScores
- getFinishReason() - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
-
Get the
reasonthis choice completed for the generation. - getFinishReason() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- getFormat() - Method in class org.springframework.ai.converter.BeanOutputConverter
-
Provides the expected format of the response, instructing that it should adhere to the generated JSON schema.
- getFormat() - Method in interface org.springframework.ai.converter.FormatProvider
-
Get the format of the output of a language generative.
- getFormat() - Method in class org.springframework.ai.converter.ListOutputConverter
- getFormat() - Method in class org.springframework.ai.converter.MapOutputConverter
- getFrequencyPenalty() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the frequency penalty to use for the chat.
- getFrequencyPenalty() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getFrequencyPenalty() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getFunctionArgumentClass(Class<? extends Function<?, ?>>, int) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Retrieves the class of a specific argument in a given function class.
- getFunctionArgumentType(ResolvableType, int) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Retrieves the type of a specific argument in a given function class.
- getFunctionInputClass(Class<? extends Function<?, ?>>) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Returns the input class of a given function class.
- getFunctionOutputClass(Class<? extends Function<?, ?>>) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Returns the output class of a given function class.
- getHarassment() - Method in class org.springframework.ai.moderation.CategoryScores
- getHarassmentThreatening() - Method in class org.springframework.ai.moderation.CategoryScores
- getHate() - Method in class org.springframework.ai.moderation.CategoryScores
- getHateThreatening() - Method in class org.springframework.ai.moderation.CategoryScores
- getHealth() - Method in class org.springframework.ai.moderation.CategoryScores
- getHeight() - Method in interface org.springframework.ai.image.ImageOptions
- getHighCardinalityKeyValues(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- getHighCardinalityKeyValues(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- getHighCardinalityKeyValues(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- getHighCardinalityKeyValues(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- getId() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
-
A unique identifier for the chat completion operation.
- getId() - Method in class org.springframework.ai.moderation.Moderation
- getIndex() - Method in class org.springframework.ai.embedding.Embedding
- getInstructions() - Method in class org.springframework.ai.audio.transcription.AudioTranscriptionPrompt
- getInstructions() - Method in class org.springframework.ai.chat.prompt.Prompt
- getInstructions() - Method in class org.springframework.ai.embedding.DocumentEmbeddingRequest
- getInstructions() - Method in class org.springframework.ai.embedding.EmbeddingRequest
- getInstructions() - Method in class org.springframework.ai.image.ImagePrompt
- getInstructions() - Method in interface org.springframework.ai.model.ModelRequest
-
Retrieves the instructions or input required by the AI model.
- getInstructions() - Method in class org.springframework.ai.moderation.ModerationPrompt
- getInternalToolExecutionEnabled() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getInternalToolExecutionEnabled() - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Whether the
ChatModelis responsible for executing the tools requested by the model or if the tools should be executed directly by the caller. - getJsonPropertyValues(Class<?>) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Returns the list of name values of the
JsonPropertyannotations. - getJsonSchema() - Method in class org.springframework.ai.converter.BeanOutputConverter
-
Provides the generated JSON schema for the target type.
- getJsonSchema(Type, boolean) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Generates JSON Schema (version 2020_12) for the given class.
- getJsonSchemaMap() - Method in class org.springframework.ai.converter.BeanOutputConverter
- getLaw() - Method in class org.springframework.ai.moderation.CategoryScores
- getLowCardinalityKeyValues(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- getLowCardinalityKeyValues(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- getLowCardinalityKeyValues(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- getLowCardinalityKeyValues(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- getMaxTokens() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the maximum number of tokens to use for the chat.
- getMaxTokens() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getMaxTokens() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getMedia() - Method in class org.springframework.ai.chat.messages.AssistantMessage
- getMedia() - Method in class org.springframework.ai.chat.messages.UserMessage
- getMessageConverter() - Method in class org.springframework.ai.converter.AbstractMessageOutputConverter
-
Return the message converter used by this output converter.
- getMessageType() - Method in class org.springframework.ai.chat.messages.AbstractMessage
-
Get the message type of the message.
- getMessageType() - Method in interface org.springframework.ai.chat.messages.Message
-
Get the message type.
- getMetadata() - Method in class org.springframework.ai.audio.transcription.AudioTranscription
- getMetadata() - Method in class org.springframework.ai.audio.transcription.AudioTranscriptionResponse
- getMetadata() - Method in class org.springframework.ai.chat.messages.AbstractMessage
-
Get the metadata of the message.
- getMetadata() - Method in class org.springframework.ai.chat.model.ChatResponse
- getMetadata() - Method in class org.springframework.ai.chat.model.Generation
- getMetadata() - Method in class org.springframework.ai.embedding.Embedding
- getMetadata() - Method in class org.springframework.ai.embedding.EmbeddingResponse
- getMetadata() - Method in class org.springframework.ai.image.ImageGeneration
- getMetadata() - Method in class org.springframework.ai.image.ImageResponse
- getMetadata() - Method in interface org.springframework.ai.model.ModelResponse
-
Retrieves the response metadata associated with the AI model's response.
- getMetadata() - Method in interface org.springframework.ai.model.ModelResult
-
Retrieves the metadata associated with the result of an AI model.
- getMetadata() - Method in class org.springframework.ai.moderation.Generation
- getMetadata() - Method in class org.springframework.ai.moderation.ModerationResponse
- getMimeType() - Method in class org.springframework.ai.embedding.EmbeddingResultMetadata
- getModalityType() - Method in class org.springframework.ai.embedding.EmbeddingResultMetadata
- getModalityType(MimeType) - Static method in class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityUtils
-
Infers the
EmbeddingResultMetadata.ModalityTypeof the source data used to generate the embedding using the source dataMimeType. - getModel() - Method in interface org.springframework.ai.audio.transcription.AudioTranscriptionOptions
- getModel() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
-
The model that handled the request.
- getModel() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the model to use for the chat.
- getModel() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getModel() - Method in interface org.springframework.ai.embedding.EmbeddingOptions
- getModel() - Method in class org.springframework.ai.embedding.EmbeddingResponseMetadata
-
The model that handled the request.
- getModel() - Method in interface org.springframework.ai.image.ImageOptions
- getModel() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getModel() - Method in class org.springframework.ai.moderation.Moderation
- getModel() - Method in interface org.springframework.ai.moderation.ModerationOptions
- getN() - Method in interface org.springframework.ai.image.ImageOptions
- getName() - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- getName() - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- getName() - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- getName() - Method in interface org.springframework.ai.model.ModelDescription
-
Returns the name of the model.
- getName() - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- getNativeUsage() - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- getNativeUsage() - Method in class org.springframework.ai.chat.metadata.EmptyUsage
- getNativeUsage() - Method in interface org.springframework.ai.chat.metadata.Usage
-
Return the usage data from the underlying model API response.
- getNativeUsage() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
- getObjectMapper() - Method in class org.springframework.ai.converter.BeanOutputConverter
-
Configures and returns an object mapper for JSON operations.
- getObjectMapper() - Static method in class org.springframework.ai.util.json.JsonParser
-
Returns a Jackson
ObjectMapperinstance tailored for JSON-parsing operations for tool calling and structured output. - getOperationMetadata() - Method in class org.springframework.ai.model.observation.ModelObservationContext
- getOperationMetadata() - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- getOperationType() - Method in class org.springframework.ai.image.observation.ImageModelObservationContext
- getOptions() - Method in class org.springframework.ai.audio.transcription.AudioTranscriptionPrompt
- getOptions() - Method in class org.springframework.ai.chat.prompt.Prompt
- getOptions() - Method in class org.springframework.ai.embedding.DocumentEmbeddingRequest
- getOptions() - Method in class org.springframework.ai.embedding.EmbeddingRequest
- getOptions() - Method in class org.springframework.ai.image.ImagePrompt
- getOptions() - Method in interface org.springframework.ai.model.ModelRequest
-
Retrieves the customizable options for AI model interactions.
- getOptions() - Method in class org.springframework.ai.moderation.ModerationPrompt
- getOrDefault(Object, T) - Method in class org.springframework.ai.model.AbstractResponseMetadata
-
Returns an element or default if not present.
- getOrDefault(Object, T) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Returns an element or default if not present.
- getOrDefault(Object, T) - Method in interface org.springframework.ai.model.ResponseMetadata
-
Returns an element or default if not present.
- getOrDefault(String, Supplier<T>) - Method in interface org.springframework.ai.model.ResponseMetadata
-
Returns an element or default if not present.
- getOrDefault(String, T) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- getOrDefault(String, T) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- getOutput() - Method in class org.springframework.ai.audio.transcription.AudioTranscription
- getOutput() - Method in class org.springframework.ai.chat.model.Generation
- getOutput() - Method in class org.springframework.ai.embedding.Embedding
- getOutput() - Method in class org.springframework.ai.image.ImageGeneration
- getOutput() - Method in interface org.springframework.ai.model.ModelResult
-
Retrieves the output generated by the AI model.
- getOutput() - Method in class org.springframework.ai.moderation.Generation
- getPii() - Method in class org.springframework.ai.moderation.CategoryScores
- getPresencePenalty() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the presence penalty to use for the chat.
- getPresencePenalty() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getPresencePenalty() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getPromptIndex() - Method in interface org.springframework.ai.chat.metadata.PromptMetadata.PromptFilterMetadata
-
Index of the prompt filter metadata contained in the AI response.
- getPromptMetadata() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
-
Returns the prompt metadata gathered by the AI during request processing.
- getPromptTokens() - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- getPromptTokens() - Method in class org.springframework.ai.chat.metadata.EmptyUsage
- getPromptTokens() - Method in interface org.springframework.ai.chat.metadata.Usage
-
Returns the number of tokens used in the prompt of the AI request.
- getPromptTokens() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
- getRateLimit() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
-
Returns AI provider specific metadata on rate limits.
- getRawMap() - Method in class org.springframework.ai.model.MutableResponseMetadata
- getRequest() - Method in class org.springframework.ai.model.observation.ModelObservationContext
- getRequestsLimit() - Method in class org.springframework.ai.chat.metadata.EmptyRateLimit
- getRequestsLimit() - Method in interface org.springframework.ai.chat.metadata.RateLimit
-
Returns the maximum number of requests that are permitted before exhausting the rate limit.
- getRequestsRemaining() - Method in class org.springframework.ai.chat.metadata.EmptyRateLimit
- getRequestsRemaining() - Method in interface org.springframework.ai.chat.metadata.RateLimit
-
Returns the remaining number of requests that are permitted before exhausting the
rate limit. - getRequestsReset() - Method in class org.springframework.ai.chat.metadata.EmptyRateLimit
- getRequestsReset() - Method in interface org.springframework.ai.chat.metadata.RateLimit
-
Returns the
timeuntil the rate limit (based on requests) resets to itsinitial state. - getRequired(Object) - Method in class org.springframework.ai.model.AbstractResponseMetadata
-
Gets an entry from the context.
- getRequired(Object) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Gets an entry from the context.
- getRequired(Object) - Method in interface org.springframework.ai.model.ResponseMetadata
-
Gets an entry from the context.
- getResponse() - Method in class org.springframework.ai.model.observation.ModelObservationContext
- getResponseFormat() - Method in interface org.springframework.ai.image.ImageOptions
- getResponses() - Method in class org.springframework.ai.chat.messages.ToolResponseMessage
- getResult() - Method in class org.springframework.ai.audio.transcription.AudioTranscriptionResponse
- getResult() - Method in class org.springframework.ai.chat.model.ChatResponse
- getResult() - Method in class org.springframework.ai.embedding.EmbeddingResponse
- getResult() - Method in class org.springframework.ai.image.ImageResponse
- getResult() - Method in interface org.springframework.ai.model.ModelResponse
-
Retrieves the result of the AI model.
- getResult() - Method in class org.springframework.ai.moderation.ModerationResponse
- getResults() - Method in class org.springframework.ai.audio.transcription.AudioTranscriptionResponse
- getResults() - Method in class org.springframework.ai.chat.model.ChatResponse
-
The
Listofgenerated outputs. - getResults() - Method in class org.springframework.ai.embedding.EmbeddingResponse
- getResults() - Method in class org.springframework.ai.image.ImageResponse
-
The
Listofgenerated outputs. - getResults() - Method in interface org.springframework.ai.model.ModelResponse
-
Retrieves the list of generated outputs by the AI model.
- getResults() - Method in class org.springframework.ai.moderation.Moderation
- getResults() - Method in class org.springframework.ai.moderation.ModerationResponse
- getSchemaType() - Method in class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver
- getSelfHarm() - Method in class org.springframework.ai.moderation.CategoryScores
- getSelfHarmInstructions() - Method in class org.springframework.ai.moderation.CategoryScores
- getSelfHarmIntent() - Method in class org.springframework.ai.moderation.CategoryScores
- getSexual() - Method in class org.springframework.ai.moderation.CategoryScores
- getSexualMinors() - Method in class org.springframework.ai.moderation.CategoryScores
- getStopSequences() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the stop sequences to use for the chat.
- getStopSequences() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getStopSequences() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getStyle() - Method in interface org.springframework.ai.image.ImageOptions
- getSystemMessage() - Method in class org.springframework.ai.chat.prompt.Prompt
-
Get the first system message in the prompt.
- getTemperature() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the temperature to use for the chat.
- getTemperature() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getTemperature() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getTemplate() - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- getText() - Method in class org.springframework.ai.chat.messages.AbstractMessage
-
Get the content of the message.
- getText() - Method in class org.springframework.ai.chat.messages.SystemMessage
- getText() - Method in class org.springframework.ai.chat.messages.UserMessage
- getText() - Method in class org.springframework.ai.image.ImageMessage
- getText() - Method in class org.springframework.ai.moderation.ModerationMessage
- getTokensLimit() - Method in class org.springframework.ai.chat.metadata.EmptyRateLimit
- getTokensLimit() - Method in interface org.springframework.ai.chat.metadata.RateLimit
-
Returns the maximum number of tokens that are permitted before exhausting the rate limit.
- getTokensRemaining() - Method in class org.springframework.ai.chat.metadata.EmptyRateLimit
- getTokensRemaining() - Method in interface org.springframework.ai.chat.metadata.RateLimit
-
Returns the remaining number of tokens that are permitted before exhausting the
rate limit. - getTokensReset() - Method in class org.springframework.ai.chat.metadata.EmptyRateLimit
- getTokensReset() - Method in interface org.springframework.ai.chat.metadata.RateLimit
-
Returns the
timeuntil the rate limit (based on tokens) resets to itsinitial state. - getToolCallArguments() - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- getToolCallbacks() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getToolCallbacks() - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
ToolCallbacks to be registered with the ChatModel.
- getToolCallbacks() - Method in class org.springframework.ai.tool.method.MethodToolCallbackProvider
- getToolCallbacks() - Method in class org.springframework.ai.tool.StaticToolCallbackProvider
-
Returns the array of function callbacks held by this provider.
- getToolCallbacks() - Method in interface org.springframework.ai.tool.ToolCallbackProvider
- getToolCallHistory() - Method in class org.springframework.ai.chat.model.ToolContext
-
Returns the tool call history from the context map.
- getToolCallResult() - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- getToolCallResultConverter(Method) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getToolCalls() - Method in class org.springframework.ai.chat.messages.AssistantMessage
- getToolContext() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getToolContext() - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Get the configured tool context.
- getToolDefinition() - Method in exception org.springframework.ai.tool.execution.ToolExecutionException
- getToolDefinition() - Method in class org.springframework.ai.tool.function.FunctionToolCallback
- getToolDefinition() - Method in class org.springframework.ai.tool.method.MethodToolCallback
- getToolDefinition() - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- getToolDefinition() - Method in interface org.springframework.ai.tool.ToolCallback
-
Definition used by the AI model to determine when and how to call the tool.
- getToolDescription(Method) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getToolDescriptionFromName(String) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getToolMetadata() - Method in class org.springframework.ai.tool.function.FunctionToolCallback
- getToolMetadata() - Method in class org.springframework.ai.tool.method.MethodToolCallback
- getToolMetadata() - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- getToolMetadata() - Method in interface org.springframework.ai.tool.ToolCallback
-
Metadata providing additional information on how to handle the tool.
- getToolName(Method) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getToolNames() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getToolNames() - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Names of the tools to register with the ChatModel.
- getToolReturnDirect(Method) - Static method in class org.springframework.ai.tool.support.ToolUtils
- getTopK() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the top K to use for the chat.
- getTopK() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getTopK() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getTopP() - Method in interface org.springframework.ai.chat.prompt.ChatOptions
-
Returns the top P to use for the chat.
- getTopP() - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- getTopP() - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- getTotalTokens() - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- getTotalTokens() - Method in interface org.springframework.ai.chat.metadata.Usage
-
Return the total number of tokens from both the prompt of an AI request and generation of the AI's response.
- getTotalTokens() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
- getUrl() - Method in class org.springframework.ai.image.Image
- getUsage() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
-
Returns AI provider specific metadata on API usage.
- getUsage() - Method in class org.springframework.ai.embedding.EmbeddingResponseMetadata
-
The AI provider specific metadata on API usage.
- getUserMessage() - Method in class org.springframework.ai.chat.prompt.Prompt
-
Get the last user message in the prompt.
- getUserMessages() - Method in class org.springframework.ai.chat.prompt.Prompt
-
Get all user messages in the prompt.
- getValue() - Method in enum class org.springframework.ai.chat.messages.MessageType
- getValue() - Method in interface org.springframework.ai.model.ApiKey
-
Returns an api key to use for a making request.
- getValue() - Method in class org.springframework.ai.model.NoopApiKey
- getValue() - Method in record class org.springframework.ai.model.SimpleApiKey
- getVersion() - Method in interface org.springframework.ai.model.ModelDescription
-
Returns the version of the model.
- getViolence() - Method in class org.springframework.ai.moderation.CategoryScores
- getViolenceGraphic() - Method in class org.springframework.ai.moderation.CategoryScores
- getWeight() - Method in class org.springframework.ai.image.ImageMessage
- getWidth() - Method in interface org.springframework.ai.image.ImageOptions
H
- harassment(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- harassment(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- harassmentThreatening(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- harassmentThreatening(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- hasFinishReasons(Set<String>) - Method in class org.springframework.ai.chat.model.ChatResponse
-
Whether the model has finished with any of the given finish reasons.
- hashCode() - Method in class org.springframework.ai.audio.transcription.AudioTranscription
- hashCode() - Method in class org.springframework.ai.chat.messages.AbstractMessage
- hashCode() - Method in class org.springframework.ai.chat.messages.AssistantMessage
- hashCode() - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Returns a hash code value for this object.
- hashCode() - Method in class org.springframework.ai.chat.messages.SystemMessage
- hashCode() - Method in class org.springframework.ai.chat.messages.ToolResponseMessage
- hashCode() - Method in record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Returns a hash code value for this object.
- hashCode() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
- hashCode() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- hashCode() - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- hashCode() - Method in class org.springframework.ai.chat.model.ChatResponse
- hashCode() - Method in class org.springframework.ai.chat.model.Generation
- hashCode() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Returns a hash code value for this object.
- hashCode() - Method in class org.springframework.ai.chat.prompt.Prompt
- hashCode() - Method in class org.springframework.ai.embedding.Embedding
- hashCode() - Method in class org.springframework.ai.embedding.EmbeddingResponse
- hashCode() - Method in class org.springframework.ai.image.Image
- hashCode() - Method in class org.springframework.ai.image.ImageMessage
- hashCode() - Method in class org.springframework.ai.image.ImagePrompt
- hashCode() - Method in class org.springframework.ai.image.ImageResponse
- hashCode() - Method in record class org.springframework.ai.model.SimpleApiKey
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.model.tool.DefaultToolExecutionResult
-
Returns a hash code value for this object.
- hashCode() - Method in class org.springframework.ai.moderation.Categories
- hashCode() - Method in class org.springframework.ai.moderation.CategoryScores
- hashCode() - Method in class org.springframework.ai.moderation.Moderation
- hashCode() - Method in class org.springframework.ai.moderation.ModerationMessage
- hashCode() - Method in class org.springframework.ai.moderation.ModerationPrompt
- hashCode() - Method in class org.springframework.ai.moderation.ModerationResponse
- hashCode() - Method in class org.springframework.ai.moderation.ModerationResult
- hashCode() - Method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.tool.metadata.DefaultToolMetadata
-
Returns a hash code value for this object.
- hasToolCalls() - Method in class org.springframework.ai.chat.messages.AssistantMessage
- hasToolCalls() - Method in class org.springframework.ai.chat.model.ChatResponse
-
Whether the model has requested the execution of a tool.
- hate(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- hate(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- hateThreatening(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- hateThreatening(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- health(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- health(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- height(Integer) - Method in class org.springframework.ai.image.ImageOptionsBuilder
- HUGGINGFACE - Static variable in class org.springframework.ai.model.SpringAIModels
I
- id() - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Returns the value of the
idrecord component. - id() - Method in record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Returns the value of the
idrecord component. - id(String) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- id(String) - Method in class org.springframework.ai.moderation.Moderation.Builder
- Image - Class in org.springframework.ai.image
- Image(String, String) - Constructor for class org.springframework.ai.image.Image
- IMAGE - Enum constant in enum class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityType
- IMAGE_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- IMAGE_MODEL_OPERATION - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation
- ImageGeneration - Class in org.springframework.ai.image
- ImageGeneration(Image) - Constructor for class org.springframework.ai.image.ImageGeneration
- ImageGeneration(Image, ImageGenerationMetadata) - Constructor for class org.springframework.ai.image.ImageGeneration
- ImageGenerationMetadata - Interface in org.springframework.ai.image
- ImageMessage - Class in org.springframework.ai.image
- ImageMessage(String) - Constructor for class org.springframework.ai.image.ImageMessage
- ImageMessage(String, Float) - Constructor for class org.springframework.ai.image.ImageMessage
- ImageModel - Interface in org.springframework.ai.image
- ImageModelObservationContext - Class in org.springframework.ai.image.observation
-
Context used to store metadata for image model exchanges.
- ImageModelObservationContext.Builder - Class in org.springframework.ai.image.observation
- ImageModelObservationConvention - Interface in org.springframework.ai.image.observation
-
Interface for an
ObservationConventionfor image model exchanges. - ImageModelObservationDocumentation - Enum Class in org.springframework.ai.image.observation
-
Documented conventions for image model observations.
- ImageModelObservationDocumentation.HighCardinalityKeyNames - Enum Class in org.springframework.ai.image.observation
-
High-cardinality observation key names for image model operations.
- ImageModelObservationDocumentation.LowCardinalityKeyNames - Enum Class in org.springframework.ai.image.observation
-
Low-cardinality observation key names for image model operations.
- ImageModelPromptContentObservationHandler - Class in org.springframework.ai.image.observation
-
Handler for emitting image prompt content to logs.
- ImageModelPromptContentObservationHandler() - Constructor for class org.springframework.ai.image.observation.ImageModelPromptContentObservationHandler
- ImageOptions - Interface in org.springframework.ai.image
-
ImageOptions represent the common options, portable across different image generation models.
- ImageOptionsBuilder - Class in org.springframework.ai.image
- imagePrompt(ImagePrompt) - Method in class org.springframework.ai.image.observation.ImageModelObservationContext.Builder
- ImagePrompt - Class in org.springframework.ai.image
- ImagePrompt(String) - Constructor for class org.springframework.ai.image.ImagePrompt
- ImagePrompt(String, ImageOptions) - Constructor for class org.springframework.ai.image.ImagePrompt
- ImagePrompt(List<ImageMessage>) - Constructor for class org.springframework.ai.image.ImagePrompt
- ImagePrompt(List<ImageMessage>, ImageOptions) - Constructor for class org.springframework.ai.image.ImagePrompt
- ImagePrompt(ImageMessage, ImageOptions) - Constructor for class org.springframework.ai.image.ImagePrompt
- ImageResponse - Class in org.springframework.ai.image
-
The image completion (e.g.
- ImageResponse(List<ImageGeneration>) - Constructor for class org.springframework.ai.image.ImageResponse
-
Construct a new
ImageResponseinstance without metadata. - ImageResponse(List<ImageGeneration>, ImageResponseMetadata) - Constructor for class org.springframework.ai.image.ImageResponse
-
Construct a new
ImageResponseinstance. - ImageResponseMetadata - Class in org.springframework.ai.image
-
Represents metadata associated with an image response.
- ImageResponseMetadata() - Constructor for class org.springframework.ai.image.ImageResponseMetadata
- ImageResponseMetadata(Long) - Constructor for class org.springframework.ai.image.ImageResponseMetadata
- InMemoryChatMemoryRepository - Class in org.springframework.ai.chat.memory
-
An in-memory implementation of
ChatMemoryRepository. - InMemoryChatMemoryRepository() - Constructor for class org.springframework.ai.chat.memory.InMemoryChatMemoryRepository
- inputSchema() - Method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Returns the value of the
inputSchemarecord component. - inputSchema() - Method in interface org.springframework.ai.tool.definition.ToolDefinition
-
The schema of the parameters used to call the tool.
- inputSchema(String) - Method in class org.springframework.ai.tool.definition.DefaultToolDefinition.Builder
- inputSchema(String) - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- inputType(Type) - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- inputType(ParameterizedTypeReference<?>) - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- internalToolExecutionEnabled(Boolean) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- internalToolExecutionEnabled(Boolean) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
Whether the
ChatModelis responsible for executing the tools requested by the model or if the tools should be executed directly by the caller. - isDangerousAndCriminalContent() - Method in class org.springframework.ai.moderation.Categories
- isEmpty() - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- isEmpty() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- isEmpty() - Method in class org.springframework.ai.model.AbstractResponseMetadata
- isEmpty() - Method in class org.springframework.ai.model.MutableResponseMetadata
- isEmpty() - Method in interface org.springframework.ai.model.ResponseMetadata
-
Returns
trueif this map contains no key-value mappings. - isEmpty(Usage) - Static method in class org.springframework.ai.support.UsageCalculator
-
Check if the
Usageis empty. - isFinancial() - Method in class org.springframework.ai.moderation.Categories
- isFlagged() - Method in class org.springframework.ai.moderation.ModerationResult
- isHarassment() - Method in class org.springframework.ai.moderation.Categories
- isHarassmentThreatening() - Method in class org.springframework.ai.moderation.Categories
- isHate() - Method in class org.springframework.ai.moderation.Categories
- isHateThreatening() - Method in class org.springframework.ai.moderation.Categories
- isHealth() - Method in class org.springframework.ai.moderation.Categories
- isInternalToolExecutionEnabled(ChatOptions) - Static method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
- isInternalToolExecutionEnabled(ChatOptions) - Method in interface org.springframework.ai.model.tool.ToolExecutionEligibilityChecker
-
Determines if tool execution should be performed by the Spring AI or by the client.
- isLaw() - Method in class org.springframework.ai.moderation.Categories
- isPii() - Method in class org.springframework.ai.moderation.Categories
- isSelfHarm() - Method in class org.springframework.ai.moderation.Categories
- isSelfHarmInstructions() - Method in class org.springframework.ai.moderation.Categories
- isSelfHarmIntent() - Method in class org.springframework.ai.moderation.Categories
- isSexual() - Method in class org.springframework.ai.moderation.Categories
- isSexualMinors() - Method in class org.springframework.ai.moderation.Categories
- isToolCallResponse(ChatResponse) - Method in interface org.springframework.ai.model.tool.ToolExecutionEligibilityChecker
-
Determines if the response is a tool call message response.
- isToolExecutionRequired(ChatOptions, ChatResponse) - Method in interface org.springframework.ai.model.tool.ToolExecutionEligibilityChecker
-
Determines if tool execution should be performed based on the prompt options and chat response.
- isToolExecutionRequired(ChatOptions, ChatResponse) - Method in interface org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate
-
Determines if tool execution should be performed based on the prompt options and chat response.
- isViolence() - Method in class org.springframework.ai.moderation.Categories
- isViolenceGraphic() - Method in class org.springframework.ai.moderation.Categories
J
- JSON_SCHEMA - Enum constant in enum class org.springframework.ai.util.json.schema.SchemaType
-
JSON schema.
- JsonParser - Class in org.springframework.ai.util.json
-
Utilities to perform parsing operations between JSON and Java.
- JsonSchemaGenerator - Class in org.springframework.ai.util.json.schema
-
Utilities to generate JSON Schemas from Java types and method signatures.
- JsonSchemaGenerator.SchemaOption - Enum Class in org.springframework.ai.util.json.schema
-
Options for generating JSON Schemas.
- jsonToMap(String) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given JSON string to a Map of String and Object using the default ObjectMapper.
- jsonToMap(String, ObjectMapper) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given JSON string to a Map of String and Object using a custom ObjectMapper.
- jsonToObject(String, Class<T>) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given JSON string to an Object of the given type.
K
- keySet() - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
- keySet() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- keySet() - Method in class org.springframework.ai.model.AbstractResponseMetadata
- keySet() - Method in class org.springframework.ai.model.MutableResponseMetadata
- keySet() - Method in interface org.springframework.ai.model.ResponseMetadata
- keyValue(String, Object) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- keywordCount(int) - Method in class org.springframework.ai.model.transformer.KeywordMetadataEnricher.Builder
- KeywordMetadataEnricher - Class in org.springframework.ai.model.transformer
-
Keyword extractor that uses generative to extract 'excerpt_keywords' metadata field.
- KeywordMetadataEnricher(ChatModel, int) - Constructor for class org.springframework.ai.model.transformer.KeywordMetadataEnricher
-
Create a new
KeywordMetadataEnricherinstance. - KeywordMetadataEnricher(ChatModel, PromptTemplate) - Constructor for class org.springframework.ai.model.transformer.KeywordMetadataEnricher
-
Create a new
KeywordMetadataEnricherinstance. - KeywordMetadataEnricher.Builder - Class in org.springframework.ai.model.transformer
- KEYWORDS_TEMPLATE - Static variable in class org.springframework.ai.model.transformer.KeywordMetadataEnricher
- keywordsTemplate(PromptTemplate) - Method in class org.springframework.ai.model.transformer.KeywordMetadataEnricher.Builder
- KnuddelsRuntimeHints - Class in org.springframework.ai.aot
- KnuddelsRuntimeHints() - Constructor for class org.springframework.ai.aot.KnuddelsRuntimeHints
- KotlinModule - Class in org.springframework.ai.model
- KotlinModule() - Constructor for class org.springframework.ai.model.KotlinModule
L
- law(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- law(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- ListOutputConverter - Class in org.springframework.ai.converter
-
StructuredOutputConverterimplementation that uses aDefaultConversionServiceto convert the LLM output into aListinstance. - ListOutputConverter() - Constructor for class org.springframework.ai.converter.ListOutputConverter
- ListOutputConverter(DefaultConversionService) - Constructor for class org.springframework.ai.converter.ListOutputConverter
- logger - Static variable in interface org.springframework.ai.tool.ToolCallback
M
- map - Variable in class org.springframework.ai.model.AbstractResponseMetadata
-
Metadata map.
- map(Observation.Context) - Method in class org.springframework.ai.tool.observation.ToolCallingContentObservationFilter
- MapOutputConverter - Class in org.springframework.ai.converter
-
StructuredOutputConverterimplementation that uses a pre-configuredMappingJackson2MessageConverterto convert the LLM output into a java.util.Map<String, Object> instance. - MapOutputConverter() - Constructor for class org.springframework.ai.converter.MapOutputConverter
- mapToClass(Map<String, Object>, Class<T>) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given Map to the given class.
- maxMessages(int) - Method in class org.springframework.ai.chat.memory.MessageWindowChatMemory.Builder
- maxTokens(Integer) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the maximum number of tokens to use for the chat.
- maxTokens(Integer) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- maxTokens(Integer) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- maxTokens(Integer) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- media - Variable in class org.springframework.ai.chat.messages.AssistantMessage
- media - Variable in class org.springframework.ai.chat.messages.UserMessage
- media(List<Media>) - Method in class org.springframework.ai.chat.messages.UserMessage.Builder
- media(Media...) - Method in class org.springframework.ai.chat.messages.UserMessage.Builder
- merge(Object, Object, Class<T>) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Merges the source object into the target object and returns an object represented by the given class.
- merge(Object, Object, Class<T>, List<String>) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Merges the source object into the target object and returns an object represented by the given class.
- mergeBeans(S, T, Class<I>, boolean) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Merges the source object into the target object.
- mergeOption(T, T) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Return the runtime value if not empty, or else the default value.
- mergeToolCallbacks(List<ToolCallback>, List<ToolCallback>) - Static method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
- mergeToolContext(Map<String, Object>, Map<String, Object>) - Static method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
- mergeToolNames(Set<String>, Set<String>) - Static method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
- Message - Interface in org.springframework.ai.chat.messages
-
The Message interface represents a message that can be sent or received in a chat application.
- MESSAGE_TYPE - Static variable in class org.springframework.ai.chat.messages.AbstractMessage
-
The key for the message type in the metadata.
- MessageAggregator - Class in org.springframework.ai.chat.model
-
Helper that for streaming chat responses, aggregate the chat response messages into a single AssistantMessage.
- MessageAggregator() - Constructor for class org.springframework.ai.chat.model.MessageAggregator
- MessageAggregator.DefaultUsage - Record Class in org.springframework.ai.chat.model
- messages(List<Message>) - Method in class org.springframework.ai.chat.prompt.Prompt.Builder
- messages(Message...) - Method in class org.springframework.ai.chat.prompt.Prompt.Builder
- messageType - Variable in class org.springframework.ai.chat.messages.AbstractMessage
-
The message type of the message.
- MessageType - Enum Class in org.springframework.ai.chat.messages
-
Enumeration representing types of
Messagesin a chat application. - MessageWindowChatMemory - Class in org.springframework.ai.chat.memory
-
A chat memory implementation that maintains a message window of a specified size, ensuring that the total number of messages does not exceed the specified limit.
- MessageWindowChatMemory.Builder - Class in org.springframework.ai.chat.memory
- metadata - Variable in class org.springframework.ai.chat.messages.AbstractMessage
-
Additional options for the message to influence the response, not a generative map.
- metadata(String, Object) - Method in class org.springframework.ai.chat.model.ChatResponse.Builder
- metadata(String, T) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata.Builder
-
Add metadata to the Generation result.
- metadata(String, T) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadataBuilder
- metadata(Map<String, Object>) - Method in class org.springframework.ai.chat.messages.SystemMessage.Builder
- metadata(Map<String, Object>) - Method in class org.springframework.ai.chat.messages.UserMessage.Builder
- metadata(Map<String, Object>) - Method in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata.Builder
-
Add metadata to the Generation result.
- metadata(Map<String, Object>) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- metadata(Map<String, Object>) - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadataBuilder
- metadata(ChatResponseMetadata) - Method in class org.springframework.ai.chat.model.ChatResponse.Builder
- METADATA_TOOL_ID - Static variable in interface org.springframework.ai.model.tool.ToolExecutionResult
- METADATA_TOOL_NAME - Static variable in interface org.springframework.ai.model.tool.ToolExecutionResult
- MethodToolCallback - Class in org.springframework.ai.tool.method
-
A
ToolCallbackimplementation to invoke methods as tools. - MethodToolCallback(ToolDefinition, ToolMetadata, Method, Object, ToolCallResultConverter) - Constructor for class org.springframework.ai.tool.method.MethodToolCallback
- MethodToolCallback.Builder - Class in org.springframework.ai.tool.method
- MethodToolCallbackProvider - Class in org.springframework.ai.tool.method
- MethodToolCallbackProvider.Builder - Class in org.springframework.ai.tool.method
- MINIMAX - Static variable in class org.springframework.ai.model.SpringAIModels
- MISTRAL - Static variable in class org.springframework.ai.model.SpringAIModels
- ModalityUtils() - Constructor for class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityUtils
- model(String) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- model(String) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the model to use for the chat.
- model(String) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- model(String) - Method in class org.springframework.ai.image.ImageOptionsBuilder
- model(String) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- model(String) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- model(String) - Method in class org.springframework.ai.moderation.Moderation.Builder
- model(String) - Method in class org.springframework.ai.moderation.ModerationOptionsBuilder
- Model<TReq extends ModelRequest<?>,
TRes extends ModelResponse<?>> - Interface in org.springframework.ai.model -
The Model interface provides a generic API for invoking AI models.
- MODEL_PREFIX - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- ModelDescription - Interface in org.springframework.ai.model
-
Describes an AI model's basic characteristics.
- ModelObservationContext<REQ,
RES> - Class in org.springframework.ai.model.observation -
Context used when sending a request to a machine learning model and waiting for a response from the model provider.
- ModelObservationContext(REQ, AiOperationMetadata) - Constructor for class org.springframework.ai.model.observation.ModelObservationContext
- ModelOptions - Interface in org.springframework.ai.model
-
Interface representing the customizable options for AI model interactions.
- ModelOptionsUtils - Class in org.springframework.ai.model
-
Utility class for manipulating
ModelOptionsobjects. - ModelOptionsUtils() - Constructor for class org.springframework.ai.model.ModelOptionsUtils
- ModelRequest<T> - Interface in org.springframework.ai.model
-
Interface representing a request to an AI model.
- ModelResponse<T extends ModelResult<?>> - Interface in org.springframework.ai.model
-
Interface representing the response received from an AI model.
- ModelResult<T> - Interface in org.springframework.ai.model
-
This interface provides methods to access the main output of the AI model and the metadata associated with this result.
- ModelUsageMetricsGenerator - Class in org.springframework.ai.model.observation
-
Generate metrics about the model usage in the context of an AI operation.
- Moderation - Class in org.springframework.ai.moderation
-
The Moderation class represents the result of a moderation process.
- MODERATION_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- Moderation.Builder - Class in org.springframework.ai.moderation
- ModerationGenerationMetadata - Interface in org.springframework.ai.moderation
-
An interface that represents metadata associated with the results of a moderation generation process.
- ModerationMessage - Class in org.springframework.ai.moderation
-
Represents a single message intended for moderation, encapsulating the text content.
- ModerationMessage(String) - Constructor for class org.springframework.ai.moderation.ModerationMessage
- ModerationModel - Interface in org.springframework.ai.moderation
-
The ModerationModel interface defines a generic AI model for moderation.
- ModerationOptions - Interface in org.springframework.ai.moderation
-
Represents the options for moderation.
- ModerationOptionsBuilder - Class in org.springframework.ai.moderation
-
A builder class for creating instances of ModerationOptions.
- ModerationPrompt - Class in org.springframework.ai.moderation
-
Represents a prompt for moderation containing a single message and the options for the moderation model.
- ModerationPrompt(String) - Constructor for class org.springframework.ai.moderation.ModerationPrompt
- ModerationPrompt(String, ModerationOptions) - Constructor for class org.springframework.ai.moderation.ModerationPrompt
- ModerationPrompt(ModerationMessage, ModerationOptions) - Constructor for class org.springframework.ai.moderation.ModerationPrompt
- ModerationResponse - Class in org.springframework.ai.moderation
-
Represents a response from a moderation process, encapsulating the moderation metadata and the generated content.
- ModerationResponse(Generation) - Constructor for class org.springframework.ai.moderation.ModerationResponse
- ModerationResponse(Generation, ModerationResponseMetadata) - Constructor for class org.springframework.ai.moderation.ModerationResponse
- ModerationResponseMetadata - Class in org.springframework.ai.moderation
-
Defines the metadata associated with a moderation response, extending a base response interface.
- ModerationResponseMetadata() - Constructor for class org.springframework.ai.moderation.ModerationResponseMetadata
- ModerationResult - Class in org.springframework.ai.moderation
-
Represents the result of a moderation process, indicating whether content was flagged, the categories of moderation, and detailed scores for each category.
- ModerationResult.Builder - Class in org.springframework.ai.moderation
- MULTI_MODAL_EMBEDDING_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- MutableResponseMetadata - Class in org.springframework.ai.model
- MutableResponseMetadata() - Constructor for class org.springframework.ai.model.MutableResponseMetadata
- mutate() - Method in class org.springframework.ai.chat.messages.SystemMessage
- mutate() - Method in class org.springframework.ai.chat.messages.UserMessage
- mutate() - Method in class org.springframework.ai.chat.prompt.Prompt
- mutate() - Method in class org.springframework.ai.chat.prompt.PromptTemplate
N
- N(Integer) - Method in class org.springframework.ai.image.ImageOptionsBuilder
- name() - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Returns the value of the
namerecord component. - name() - Method in record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Returns the value of the
namerecord component. - name() - Element in annotation interface org.springframework.ai.tool.annotation.Tool
-
The name of the tool.
- name() - Method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Returns the value of the
namerecord component. - name() - Method in interface org.springframework.ai.tool.definition.ToolDefinition
-
The tool name.
- name(String) - Method in class org.springframework.ai.tool.definition.DefaultToolDefinition.Builder
- NEXT - Enum constant in enum class org.springframework.ai.model.transformer.SummaryMetadataEnricher.SummaryType
- NoopApiKey - Class in org.springframework.ai.model
-
This implementation of ApiKey indicates that no API key should be used, e.g.
- NoopApiKey() - Constructor for class org.springframework.ai.model.NoopApiKey
- NULL - Static variable in interface org.springframework.ai.audio.transcription.AudioTranscriptionMetadata
- NULL - Static variable in interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
O
- OBJECT_MAPPER - Static variable in class org.springframework.ai.model.ModelOptionsUtils
- objectToMap(Object) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given object to a Map.
- observationRegistry(ObservationRegistry) - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager.Builder
- OCI_GENAI - Static variable in class org.springframework.ai.model.SpringAIModels
- of(Iterable<PromptMetadata.PromptFilterMetadata>) - Static method in interface org.springframework.ai.chat.metadata.PromptMetadata
-
Factory method used to create a new
PromptMetadatacomposed of anIterableofPromptMetadata.PromptFilterMetadata. - of(PromptMetadata.PromptFilterMetadata...) - Static method in interface org.springframework.ai.chat.metadata.PromptMetadata
-
Factory method used to create a new
PromptMetadatacomposed of an array ofPromptMetadata.PromptFilterMetadata. - OLLAMA - Static variable in class org.springframework.ai.model.SpringAIModels
- onError(Observation.Context) - Method in class org.springframework.ai.model.observation.ErrorLoggingObservationHandler
- onStop(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.ChatModelCompletionObservationHandler
- onStop(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.ChatModelMeterObservationHandler
- onStop(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.ChatModelPromptContentObservationHandler
- onStop(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.EmbeddingModelMeterObservationHandler
- onStop(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.ImageModelPromptContentObservationHandler
- OPEN_API_SCHEMA - Enum constant in enum class org.springframework.ai.util.json.schema.SchemaType
-
Open API schema.
- OPENAI - Static variable in class org.springframework.ai.model.SpringAIModels
- options - Variable in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- org.springframework.ai.aot - package org.springframework.ai.aot
- org.springframework.ai.audio.transcription - package org.springframework.ai.audio.transcription
- org.springframework.ai.chat.memory - package org.springframework.ai.chat.memory
- org.springframework.ai.chat.messages - package org.springframework.ai.chat.messages
- org.springframework.ai.chat.metadata - package org.springframework.ai.chat.metadata
- org.springframework.ai.chat.model - package org.springframework.ai.chat.model
- org.springframework.ai.chat.observation - package org.springframework.ai.chat.observation
-
Provides the API for chat observations.
- org.springframework.ai.chat.prompt - package org.springframework.ai.chat.prompt
- org.springframework.ai.converter - package org.springframework.ai.converter
- org.springframework.ai.embedding - package org.springframework.ai.embedding
-
Provides the API for embedding observations.
- org.springframework.ai.embedding.observation - package org.springframework.ai.embedding.observation
-
Provides the API for embedding observations.
- org.springframework.ai.image - package org.springframework.ai.image
- org.springframework.ai.image.observation - package org.springframework.ai.image.observation
-
Provides classes for observing image data.
- org.springframework.ai.model - package org.springframework.ai.model
-
Provides a set of interfaces and classes for a generic API designed to interact with various AI models.
- org.springframework.ai.model.observation - package org.springframework.ai.model.observation
-
Provides classes for observing model data.
- org.springframework.ai.model.tool - package org.springframework.ai.model.tool
- org.springframework.ai.model.transformer - package org.springframework.ai.model.transformer
- org.springframework.ai.moderation - package org.springframework.ai.moderation
- org.springframework.ai.support - package org.springframework.ai.support
- org.springframework.ai.tool - package org.springframework.ai.tool
- org.springframework.ai.tool.annotation - package org.springframework.ai.tool.annotation
- org.springframework.ai.tool.definition - package org.springframework.ai.tool.definition
- org.springframework.ai.tool.execution - package org.springframework.ai.tool.execution
- org.springframework.ai.tool.function - package org.springframework.ai.tool.function
- org.springframework.ai.tool.metadata - package org.springframework.ai.tool.metadata
- org.springframework.ai.tool.method - package org.springframework.ai.tool.method
- org.springframework.ai.tool.observation - package org.springframework.ai.tool.observation
-
Provides the API for chat client advisors observations.
- org.springframework.ai.tool.resolution - package org.springframework.ai.tool.resolution
- org.springframework.ai.tool.support - package org.springframework.ai.tool.support
- org.springframework.ai.util.json - package org.springframework.ai.util.json
- org.springframework.ai.util.json.schema - package org.springframework.ai.util.json.schema
P
- pii(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- pii(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- POSTGRESML - Static variable in class org.springframework.ai.model.SpringAIModels
- presencePenalty(Double) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the presence penalty to use for the chat.
- presencePenalty(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- presencePenalty(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- presencePenalty(Double) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- PREVIOUS - Enum constant in enum class org.springframework.ai.model.transformer.SummaryMetadataEnricher.SummaryType
- process(ToolExecutionException) - Method in class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor
- process(ToolExecutionException) - Method in interface org.springframework.ai.tool.execution.ToolExecutionExceptionProcessor
-
Convert an exception thrown by a tool to a String that can be sent back to the AI model or throw an exception to be handled by the caller.
- prompt(Prompt) - Method in class org.springframework.ai.chat.observation.ChatModelObservationContext.Builder
- Prompt - Class in org.springframework.ai.chat.prompt
-
The Prompt class represents a prompt used in AI model requests.
- Prompt(String) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt(String, ChatOptions) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt(List<Message>) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt(List<Message>, ChatOptions) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt(Message) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt(Message...) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt(Message, ChatOptions) - Constructor for class org.springframework.ai.chat.prompt.Prompt
- Prompt.Builder - Class in org.springframework.ai.chat.prompt
- promptMetadata(PromptMetadata) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- PromptMetadata - Interface in org.springframework.ai.chat.metadata
-
Abstract Data Type (ADT) modeling metadata gathered by the AI during request processing.
- PromptMetadata.PromptFilterMetadata - Interface in org.springframework.ai.chat.metadata
-
Abstract Data Type (ADT) modeling filter metadata for all prompts sent during an AI request.
- PromptTemplate - Class in org.springframework.ai.chat.prompt
-
A template for creating prompts.
- PromptTemplate(String) - Constructor for class org.springframework.ai.chat.prompt.PromptTemplate
- PromptTemplate(Resource) - Constructor for class org.springframework.ai.chat.prompt.PromptTemplate
- PromptTemplate.Builder - Class in org.springframework.ai.chat.prompt
- PromptTemplateActions - Interface in org.springframework.ai.chat.prompt
- PromptTemplateChatActions - Interface in org.springframework.ai.chat.prompt
- PromptTemplateMessageActions - Interface in org.springframework.ai.chat.prompt
- PromptTemplateStringActions - Interface in org.springframework.ai.chat.prompt
- promptTokens() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Returns the value of the
promptTokensrecord component. - PROPERTY_REQUIRED_FALSE_BY_DEFAULT - Enum constant in enum class org.springframework.ai.util.json.schema.SpringAiSchemaModule.Option
-
Properties are only required if marked as such via one of the supported annotations.
- provider(String) - Method in class org.springframework.ai.chat.observation.ChatModelObservationContext.Builder
- provider(String) - Method in class org.springframework.ai.embedding.observation.EmbeddingModelObservationContext.Builder
- provider(String) - Method in class org.springframework.ai.image.observation.ImageModelObservationContext.Builder
- put(String, T) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Puts an element to the context.
R
- rateLimit(RateLimit) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- RateLimit - Interface in org.springframework.ai.chat.metadata
-
Abstract Data Type (ADT) encapsulating metadata from an AI provider's API rate limits granted to the API key in use and the API key's current balance.
- registerHints(RuntimeHints, ClassLoader) - Method in class org.springframework.ai.aot.KnuddelsRuntimeHints
- registerHints(RuntimeHints, ClassLoader) - Method in class org.springframework.ai.aot.SpringAiCoreRuntimeHints
- registerHints(RuntimeHints, ClassLoader) - Method in class org.springframework.ai.aot.ToolRuntimeHints
- remove(Object) - Method in class org.springframework.ai.model.MutableResponseMetadata
-
Removes an entry from the context.
- render() - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- render() - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- render() - Method in interface org.springframework.ai.chat.prompt.PromptTemplateStringActions
- render(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.ChatPromptTemplate
- render(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.PromptTemplate
- render(Map<String, Object>) - Method in interface org.springframework.ai.chat.prompt.PromptTemplateStringActions
- renderer - Variable in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- renderer(TemplateRenderer) - Method in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- renderer(TemplateRenderer) - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate.Builder
- REQUEST_EMBEDDING_DIMENSIONS - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.HighCardinalityKeyNames
-
The number of dimensions the resulting output embeddings have.
- REQUEST_FREQUENCY_PENALTY - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The frequency penalty setting for the model request.
- REQUEST_IMAGE_RESPONSE_FORMAT - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The format in which the generated image is returned.
- REQUEST_IMAGE_SIZE - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The size of the image to generate.
- REQUEST_IMAGE_STYLE - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The style of the image to generate.
- REQUEST_MAX_TOKENS - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The maximum number of tokens the model generates for a request.
- REQUEST_MODEL - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the model a request is being made to.
- REQUEST_MODEL - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the model a request is being made to.
- REQUEST_MODEL - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the model a request is being made to.
- REQUEST_PRESENCE_PENALTY - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The presence penalty setting for the model request.
- REQUEST_STOP_SEQUENCES - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
List of sequences that the model will use to stop generating further tokens.
- REQUEST_TEMPERATURE - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The temperature setting for the model request.
- REQUEST_TOOL_NAMES - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
List of tool definitions provided to the model in the request.
- REQUEST_TOP_K - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The top_k sampling setting for the model request.
- REQUEST_TOP_P - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The top_p sampling setting for the model request.
- requestEmbeddingDimension(KeyValues, EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- requestFrequencyPenalty(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestImageFormat(KeyValues, ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- requestImageSize(KeyValues, ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- requestImageStyle(KeyValues, ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- requestMaxTokens(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestModel(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestModel(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- requestModel(ImageModelObservationContext) - Method in class org.springframework.ai.image.observation.DefaultImageModelObservationConvention
- requestPresencePenalty(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestStopSequences(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestTemperature(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestTools(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestTopK(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- requestTopP(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- required() - Element in annotation interface org.springframework.ai.tool.annotation.ToolParam
-
Whether the tool argument is required.
- resolve(String) - Method in class org.springframework.ai.tool.resolution.DelegatingToolCallbackResolver
- resolve(String) - Method in class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver
- resolve(String) - Method in class org.springframework.ai.tool.resolution.StaticToolCallbackResolver
- resolve(String) - Method in interface org.springframework.ai.tool.resolution.ToolCallbackResolver
-
Resolve the
ToolCallbackfor the given tool name. - resolveBeanType(GenericApplicationContext, String) - Static method in class org.springframework.ai.tool.resolution.TypeResolverHelper
-
Resolve bean type, either directly with
BeanDefinition.getResolvableType()or by resolving the factory method (duplicatingConstructorResolver#resolveFactoryMethodIfPossiblelogic as it is not public). - resolveToolDefinitions(ToolCallingChatOptions) - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager
- resolveToolDefinitions(ToolCallingChatOptions) - Method in interface org.springframework.ai.model.tool.ToolCallingManager
-
Resolve the tool definitions from the model's tool calling options.
- resource - Variable in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- resource(Resource) - Method in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- resource(Resource) - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate.Builder
- RESPONSE_FINISH_REASONS - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
Reasons the model stopped generating tokens, corresponding to each generation received.
- RESPONSE_ID - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The unique identifier for the AI response.
- RESPONSE_ID - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The unique identifier for the AI response.
- RESPONSE_MODEL - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the model that generated the response.
- RESPONSE_MODEL - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.LowCardinalityKeyNames
-
The name of the model that generated the response.
- RESPONSE_MODEL - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The name of the model that generated the response.
- responseData() - Method in record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Returns the value of the
responseDatarecord component. - responseFinishReasons(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- responseFormat(String) - Method in class org.springframework.ai.image.ImageOptionsBuilder
- responseId(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- ResponseMetadata - Interface in org.springframework.ai.model
-
Interface representing metadata associated with an AI model's response.
- responseModel(ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- responseModel(EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- responses - Variable in class org.springframework.ai.chat.messages.ToolResponseMessage
- resultConverter() - Element in annotation interface org.springframework.ai.tool.annotation.Tool
-
The class to use to convert the tool call result to a String.
- ResultMetadata - Interface in org.springframework.ai.model
-
Interface representing metadata associated with the results of an AI model.
- results(List<ModerationResult>) - Method in class org.springframework.ai.moderation.Moderation.Builder
- rethrowExceptions(List<Class<? extends RuntimeException>>) - Method in class org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor.Builder
-
An allowlist of exceptions thrown by tools, which will be unwrapped and re-thrown without further processing.
- returnDirect() - Method in record class org.springframework.ai.model.tool.DefaultToolExecutionResult
-
Returns the value of the
returnDirectrecord component. - returnDirect() - Method in interface org.springframework.ai.model.tool.ToolExecutionResult
-
Whether the tool execution result should be returned directly or passed back to the model.
- returnDirect() - Element in annotation interface org.springframework.ai.tool.annotation.Tool
-
Whether the tool result should be returned directly or passed back to the model.
- returnDirect() - Method in record class org.springframework.ai.tool.metadata.DefaultToolMetadata
-
Returns the value of the
returnDirectrecord component. - returnDirect() - Method in interface org.springframework.ai.tool.metadata.ToolMetadata
-
Whether the tool result should be returned directly or passed back to the model.
- returnDirect(boolean) - Method in class org.springframework.ai.model.tool.DefaultToolExecutionResult.Builder
- returnDirect(boolean) - Method in class org.springframework.ai.tool.metadata.DefaultToolMetadata.Builder
S
- saveAll(String, List<Message>) - Method in interface org.springframework.ai.chat.memory.ChatMemoryRepository
-
Replaces all the existing messages for the given conversation ID with the provided messages.
- saveAll(String, List<Message>) - Method in class org.springframework.ai.chat.memory.InMemoryChatMemoryRepository
- schemaType(SchemaType) - Method in class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver.Builder
- SchemaType - Enum Class in org.springframework.ai.util.json.schema
-
The type of schema to generate for a given Java type.
- selfHarm(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- selfHarm(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- selfHarmInstructions(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- selfHarmInstructions(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- selfHarmIntent(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- selfHarmIntent(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- setB64Json(String) - Method in class org.springframework.ai.image.Image
- setCategories(Categories) - Method in class org.springframework.ai.moderation.ModerationResult
- setCategoryScores(CategoryScores) - Method in class org.springframework.ai.moderation.ModerationResult
- setFlagged(boolean) - Method in class org.springframework.ai.moderation.ModerationResult
- setFrequencyPenalty(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setFrequencyPenalty(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setInternalToolExecutionEnabled(Boolean) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setInternalToolExecutionEnabled(Boolean) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Set whether the
ChatModelis responsible for executing the tools requested by the model or if the tools should be executed directly by the caller. - setMaxTokens(Integer) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setMaxTokens(Integer) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setModel(String) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setModel(String) - Method in class org.springframework.ai.embedding.EmbeddingResponseMetadata
- setModel(String) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setObservationConvention(ToolCallingObservationConvention) - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager
- setOptions(ModerationOptions) - Method in class org.springframework.ai.moderation.ModerationPrompt
- setPresencePenalty(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setPresencePenalty(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setResponse(RES) - Method in class org.springframework.ai.model.observation.ModelObservationContext
- setStopSequences(List<String>) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setStopSequences(List<String>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setTemperature(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setTemperature(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setText(String) - Method in class org.springframework.ai.moderation.ModerationMessage
- setToolCallbacks(List<ToolCallback>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setToolCallbacks(List<ToolCallback>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Set the ToolCallbacks to be registered with the ChatModel.
- setToolCallResult(String) - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext
- setToolContext(Map<String, Object>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setToolContext(Map<String, Object>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Set the tool context values as map.
- setToolNames(Set<String>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setToolNames(Set<String>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
-
Set the names of the tools to register with the ChatModel.
- setTopK(Integer) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setTopK(Integer) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setTopP(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptions
- setTopP(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- setUrl(String) - Method in class org.springframework.ai.image.Image
- setUsage(Usage) - Method in class org.springframework.ai.embedding.EmbeddingResponseMetadata
- sexual(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- sexual(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- sexualMinors(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- sexualMinors(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- SimpleApiKey - Record Class in org.springframework.ai.model
-
A simple implementation of
ApiKeythat holds an immutable API key value. - SimpleApiKey(String) - Constructor for record class org.springframework.ai.model.SimpleApiKey
-
Create a new SimpleApiKey.
- SPRING_AI_KIND - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.LowCardinalityKeyNames
-
Spring AI kind.
- SpringAiCoreRuntimeHints - Class in org.springframework.ai.aot
- SpringAiCoreRuntimeHints() - Constructor for class org.springframework.ai.aot.SpringAiCoreRuntimeHints
- springAiKind(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- SpringAIModelProperties - Class in org.springframework.ai.model
- SpringAIModels - Class in org.springframework.ai.model
- SpringAiSchemaModule - Class in org.springframework.ai.util.json.schema
-
JSON Schema Generator Module for Spring AI.
- SpringAiSchemaModule(SpringAiSchemaModule.Option...) - Constructor for class org.springframework.ai.util.json.schema.SpringAiSchemaModule
- SpringAiSchemaModule.Option - Enum Class in org.springframework.ai.util.json.schema
-
Options for customizing the behavior of the module.
- SpringBeanToolCallbackResolver - Class in org.springframework.ai.tool.resolution
-
A Spring
ApplicationContext-based implementation that provides a way to retrieve a bean from the Spring context and wrap it into aToolCallback. - SpringBeanToolCallbackResolver(GenericApplicationContext, SchemaType) - Constructor for class org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver
- SpringBeanToolCallbackResolver.Builder - Class in org.springframework.ai.tool.resolution
- STABILITY_AI - Static variable in class org.springframework.ai.model.SpringAIModels
- StaticToolCallbackProvider - Class in org.springframework.ai.tool
-
A simple implementation of
ToolCallbackProviderthat maintains a static array ofToolCallbackobjects. - StaticToolCallbackProvider(List<? extends ToolCallback>) - Constructor for class org.springframework.ai.tool.StaticToolCallbackProvider
-
Constructs a new StaticToolCallbackProvider with the specified list of function callbacks.
- StaticToolCallbackProvider(ToolCallback...) - Constructor for class org.springframework.ai.tool.StaticToolCallbackProvider
-
Constructs a new StaticToolCallbackProvider with the specified array of function callbacks.
- StaticToolCallbackResolver - Class in org.springframework.ai.tool.resolution
-
A
ToolCallbackResolverthat resolves tool callbacks from a static registry. - StaticToolCallbackResolver(List<ToolCallback>) - Constructor for class org.springframework.ai.tool.resolution.StaticToolCallbackResolver
- stopSequences(List<String>) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the stop sequences to use for the chat.
- stopSequences(List<String>) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- stopSequences(List<String>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- stopSequences(List<String>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- stream(String) - Method in interface org.springframework.ai.chat.model.StreamingChatModel
- stream(Message...) - Method in interface org.springframework.ai.chat.model.StreamingChatModel
- stream(Prompt) - Method in interface org.springframework.ai.chat.model.ChatModel
- stream(Prompt) - Method in interface org.springframework.ai.chat.model.StreamingChatModel
- stream(TReq) - Method in interface org.springframework.ai.model.StreamingModel
-
Executes a method call to the AI model.
- StreamingChatModel - Interface in org.springframework.ai.chat.model
- StreamingModel<TReq extends ModelRequest<?>,
TResChunk extends ModelResponse<?>> - Interface in org.springframework.ai.model -
The StreamingModel interface provides a generic API for invoking an AI models with streaming response.
- StructuredOutputConverter<T> - Interface in org.springframework.ai.converter
-
Converts the (raw) LLM output into a structured responses of type.
- style(String) - Method in class org.springframework.ai.image.ImageOptionsBuilder
- SummaryMetadataEnricher - Class in org.springframework.ai.model.transformer
-
Title extractor with adjacent sharing that uses generative to extract 'section_summary', 'prev_section_summary', 'next_section_summary' metadata fields.
- SummaryMetadataEnricher(ChatModel, List<SummaryMetadataEnricher.SummaryType>) - Constructor for class org.springframework.ai.model.transformer.SummaryMetadataEnricher
- SummaryMetadataEnricher(ChatModel, List<SummaryMetadataEnricher.SummaryType>, String, MetadataMode) - Constructor for class org.springframework.ai.model.transformer.SummaryMetadataEnricher
- SummaryMetadataEnricher.SummaryType - Enum Class in org.springframework.ai.model.transformer
- supportsContext(Observation.Context) - Method in class org.springframework.ai.chat.observation.ChatModelCompletionObservationHandler
- supportsContext(Observation.Context) - Method in class org.springframework.ai.chat.observation.ChatModelMeterObservationHandler
- supportsContext(Observation.Context) - Method in interface org.springframework.ai.chat.observation.ChatModelObservationConvention
- supportsContext(Observation.Context) - Method in class org.springframework.ai.chat.observation.ChatModelPromptContentObservationHandler
- supportsContext(Observation.Context) - Method in class org.springframework.ai.embedding.observation.EmbeddingModelMeterObservationHandler
- supportsContext(Observation.Context) - Method in interface org.springframework.ai.embedding.observation.EmbeddingModelObservationConvention
- supportsContext(Observation.Context) - Method in interface org.springframework.ai.image.observation.ImageModelObservationConvention
- supportsContext(Observation.Context) - Method in class org.springframework.ai.image.observation.ImageModelPromptContentObservationHandler
- supportsContext(Observation.Context) - Method in class org.springframework.ai.model.observation.ErrorLoggingObservationHandler
- supportsContext(Observation.Context) - Method in interface org.springframework.ai.tool.observation.ToolCallingObservationConvention
- SYSTEM - Enum constant in enum class org.springframework.ai.chat.messages.MessageType
- SystemMessage - Class in org.springframework.ai.chat.messages
-
A message of the type 'system' passed as input.
- SystemMessage(String) - Constructor for class org.springframework.ai.chat.messages.SystemMessage
- SystemMessage(Resource) - Constructor for class org.springframework.ai.chat.messages.SystemMessage
- SystemMessage.Builder - Class in org.springframework.ai.chat.messages
- SystemPromptTemplate - Class in org.springframework.ai.chat.prompt
- SystemPromptTemplate(String) - Constructor for class org.springframework.ai.chat.prompt.SystemPromptTemplate
- SystemPromptTemplate(Resource) - Constructor for class org.springframework.ai.chat.prompt.SystemPromptTemplate
- SystemPromptTemplate.Builder - Class in org.springframework.ai.chat.prompt
T
- temperature(Double) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the temperature to use for the chat.
- temperature(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- temperature(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- temperature(Double) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- template - Variable in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- template(String) - Method in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- template(String) - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate.Builder
- test(ChatOptions, ChatResponse) - Method in class org.springframework.ai.model.tool.DefaultToolExecutionEligibilityPredicate
- text(String) - Method in class org.springframework.ai.chat.messages.SystemMessage.Builder
- text(String) - Method in class org.springframework.ai.chat.messages.UserMessage.Builder
- text(Resource) - Method in class org.springframework.ai.chat.messages.SystemMessage.Builder
- text(Resource) - Method in class org.springframework.ai.chat.messages.UserMessage.Builder
- TEXT - Enum constant in enum class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityType
- TEXT_EMBEDDING_MODEL - Static variable in class org.springframework.ai.model.SpringAIModelProperties
- textContent - Variable in class org.springframework.ai.chat.messages.AbstractMessage
-
The content of the message.
- toFloatArray(float[]) - Static method in class org.springframework.ai.model.EmbeddingUtils
- toJson(Object) - Static method in class org.springframework.ai.util.json.JsonParser
-
Converts a Java object to a JSON string if it's not already a valid JSON string.
- toJsonString(Object) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given object to a JSON string.
- toJsonStringPrettyPrinter(Object) - Static method in class org.springframework.ai.model.ModelOptionsUtils
-
Converts the given object to a JSON string.
- toList(float[]) - Static method in class org.springframework.ai.model.EmbeddingUtils
- Tool - Annotation Interface in org.springframework.ai.tool.annotation
-
Marks a method as a tool in Spring AI.
- TOOL - Enum constant in enum class org.springframework.ai.chat.messages.MessageType
- TOOL_CALL - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation
-
Tool calling observations.
- TOOL_CALL_ARGUMENTS - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.HighCardinalityKeyNames
-
The input arguments to the tool call.
- TOOL_CALL_HISTORY - Static variable in class org.springframework.ai.chat.model.ToolContext
-
The key for the running, tool call history stored in the context map.
- TOOL_CALL_RESULT - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.HighCardinalityKeyNames
-
The result of the tool call.
- TOOL_DEFINITION_DESCRIPTION - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.HighCardinalityKeyNames
-
Description of the tool.
- TOOL_DEFINITION_NAME - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.LowCardinalityKeyNames
-
The name of the tool.
- TOOL_DEFINITION_SCHEMA - Enum constant in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.HighCardinalityKeyNames
-
Schema of the parameters used to call the tool.
- ToolCall(String, String, String, String) - Constructor for record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Creates an instance of a
ToolCallrecord class. - toolCallArguments(String) - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext.Builder
- ToolCallback - Interface in org.springframework.ai.tool
-
Represents a tool whose execution can be triggered by an AI model.
- ToolCallbackProvider - Interface in org.springframework.ai.tool
-
Provides
ToolCallbackinstances for tools defined in different sources. - toolCallbackResolver(ToolCallbackResolver) - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager.Builder
- ToolCallbackResolver - Interface in org.springframework.ai.tool.resolution
-
A resolver for
ToolCallbackinstances. - toolCallbacks(List<ToolCallback>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- toolCallbacks(List<ToolCallback>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
ToolCallbacks to be registered with the ChatModel.
- toolCallbacks(ToolCallback...) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- toolCallbacks(ToolCallback...) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
ToolCallbacks to be registered with the ChatModel.
- ToolCallbacks - Class in org.springframework.ai.support
-
Provides
ToolCallbackinstances for tools defined in different sources. - ToolCallingChatOptions - Interface in org.springframework.ai.model.tool
-
A set of options that can be used to configure the interaction with a chat model, including tool calling.
- ToolCallingChatOptions.Builder - Interface in org.springframework.ai.model.tool
-
A builder to create a
ToolCallingChatOptionsinstance. - ToolCallingContentObservationFilter - Class in org.springframework.ai.tool.observation
-
An
ObservationFilterto include the tool call content (input/output) in the observation. - ToolCallingContentObservationFilter() - Constructor for class org.springframework.ai.tool.observation.ToolCallingContentObservationFilter
- ToolCallingManager - Interface in org.springframework.ai.model.tool
-
Service responsible for managing the tool calling process for a chat model.
- ToolCallingObservationContext - Class in org.springframework.ai.tool.observation
-
Context used to store data for tool calling observations.
- ToolCallingObservationContext.Builder - Class in org.springframework.ai.tool.observation
- ToolCallingObservationConvention - Interface in org.springframework.ai.tool.observation
-
Interface for an
ObservationConventionfor tool calling observations. - ToolCallingObservationDocumentation - Enum Class in org.springframework.ai.tool.observation
-
Tool calling observation documentation.
- ToolCallingObservationDocumentation.HighCardinalityKeyNames - Enum Class in org.springframework.ai.tool.observation
-
High cardinality key names.
- ToolCallingObservationDocumentation.LowCardinalityKeyNames - Enum Class in org.springframework.ai.tool.observation
-
Low cardinality key names.
- toolCallResult(String) - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext.Builder
- toolCallResultConverter(ToolCallResultConverter) - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- toolCallResultConverter(ToolCallResultConverter) - Method in class org.springframework.ai.tool.method.MethodToolCallback.Builder
- ToolCallResultConverter - Interface in org.springframework.ai.tool.execution
-
A functional interface to convert tool call results to a String that can be sent back to the AI model.
- toolContext(String, Object) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- toolContext(String, Object) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
Add a specific key/value pair to the tool context.
- toolContext(Map<String, Object>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- toolContext(Map<String, Object>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
Add a
Mapof context values into tool context. - ToolContext - Class in org.springframework.ai.chat.model
-
Represents the context for tool execution in a function calling scenario.
- ToolContext(Map<String, Object>) - Constructor for class org.springframework.ai.chat.model.ToolContext
-
Constructs a new ToolContext with the given context map.
- toolDefinition(ToolDefinition) - Method in class org.springframework.ai.tool.method.MethodToolCallback.Builder
- toolDefinition(ToolDefinition) - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext.Builder
- ToolDefinition - Interface in org.springframework.ai.tool.definition
-
Definition used by the AI model to determine when and how to call the tool.
- toolDefinitionDescription(KeyValues, ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- toolDefinitionName(ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- ToolDefinitions - Class in org.springframework.ai.tool.support
-
Utility class for creating
ToolDefinitionbuilders and instances from JavaMethodobjects. - toolDefinitionSchema(KeyValues, ToolCallingObservationContext) - Method in class org.springframework.ai.tool.observation.DefaultToolCallingObservationConvention
- ToolExecutionEligibilityChecker - Interface in org.springframework.ai.model.tool
-
Interface for determining when tool execution should be performed based on model responses.
- ToolExecutionEligibilityPredicate - Interface in org.springframework.ai.model.tool
-
Interface for determining when tool execution should be performed based on model responses.
- ToolExecutionException - Exception in org.springframework.ai.tool.execution
-
An exception thrown when a tool execution fails.
- ToolExecutionException(ToolDefinition, Throwable) - Constructor for exception org.springframework.ai.tool.execution.ToolExecutionException
- toolExecutionExceptionProcessor(ToolExecutionExceptionProcessor) - Method in class org.springframework.ai.model.tool.DefaultToolCallingManager.Builder
- ToolExecutionExceptionProcessor - Interface in org.springframework.ai.tool.execution
-
A functional interface to process a
ToolExecutionExceptionby either converting the error message to a String that can be sent back to the AI model or throwing an exception to be handled by the caller. - ToolExecutionResult - Interface in org.springframework.ai.model.tool
-
The result of a tool execution.
- toolMetadata(ToolMetadata) - Method in class org.springframework.ai.tool.function.FunctionToolCallback.Builder
- toolMetadata(ToolMetadata) - Method in class org.springframework.ai.tool.method.MethodToolCallback.Builder
- toolMetadata(ToolMetadata) - Method in class org.springframework.ai.tool.observation.ToolCallingObservationContext.Builder
- ToolMetadata - Interface in org.springframework.ai.tool.metadata
-
Metadata about a tool specification and execution.
- toolMethod(Method) - Method in class org.springframework.ai.tool.method.MethodToolCallback.Builder
- toolNames(String...) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- toolNames(String...) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
Names of the tools to register with the ChatModel.
- toolNames(Set<String>) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- toolNames(Set<String>) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
-
Names of the tools to register with the ChatModel.
- toolObject(Object) - Method in class org.springframework.ai.tool.method.MethodToolCallback.Builder
- toolObjects(Object...) - Method in class org.springframework.ai.tool.method.MethodToolCallbackProvider.Builder
- ToolParam - Annotation Interface in org.springframework.ai.tool.annotation
-
Marks a tool argument.
- ToolResponse(String, String, String) - Constructor for record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Creates an instance of a
ToolResponserecord class. - ToolResponseMessage - Class in org.springframework.ai.chat.messages
-
The ToolResponseMessage class represents a message with a function content in a chat application.
- ToolResponseMessage(List<ToolResponseMessage.ToolResponse>) - Constructor for class org.springframework.ai.chat.messages.ToolResponseMessage
- ToolResponseMessage(List<ToolResponseMessage.ToolResponse>, Map<String, Object>) - Constructor for class org.springframework.ai.chat.messages.ToolResponseMessage
- ToolResponseMessage.ToolResponse - Record Class in org.springframework.ai.chat.messages
- ToolRuntimeHints - Class in org.springframework.ai.aot
-
Registers runtime hints for the tool calling APIs.
- ToolRuntimeHints() - Constructor for class org.springframework.ai.aot.ToolRuntimeHints
- ToolUtils - Class in org.springframework.ai.tool.support
-
Miscellaneous tool utility methods.
- topK(Integer) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the top K to use for the chat.
- topK(Integer) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- topK(Integer) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- topK(Integer) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- topP(Double) - Method in interface org.springframework.ai.chat.prompt.ChatOptions.Builder
-
Builds with the top P to use for the chat.
- topP(Double) - Method in class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- topP(Double) - Method in class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
- topP(Double) - Method in interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
- toPrimitive(Float[]) - Static method in class org.springframework.ai.model.EmbeddingUtils
- toPrimitive(List<Float>) - Static method in class org.springframework.ai.model.EmbeddingUtils
- toString() - Method in class org.springframework.ai.audio.transcription.AudioTranscription
- toString() - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.ai.chat.messages.AssistantMessage
- toString() - Method in class org.springframework.ai.chat.messages.SystemMessage
- toString() - Method in record class org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.ai.chat.messages.ToolResponseMessage
- toString() - Method in class org.springframework.ai.chat.messages.UserMessage
- toString() - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata
- toString() - Method in class org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- toString() - Method in class org.springframework.ai.chat.metadata.DefaultUsage
- toString() - Method in class org.springframework.ai.chat.model.ChatResponse
- toString() - Method in class org.springframework.ai.chat.model.Generation
- toString() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.ai.chat.prompt.Prompt
- toString() - Method in class org.springframework.ai.embedding.Embedding
- toString() - Method in class org.springframework.ai.embedding.EmbeddingResponse
- toString() - Method in class org.springframework.ai.image.Image
- toString() - Method in class org.springframework.ai.image.ImageGeneration
- toString() - Method in class org.springframework.ai.image.ImageMessage
- toString() - Method in class org.springframework.ai.image.ImagePrompt
- toString() - Method in class org.springframework.ai.image.ImageResponse
- toString() - Method in record class org.springframework.ai.model.SimpleApiKey
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.model.tool.DefaultToolExecutionResult
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.ai.moderation.Categories
- toString() - Method in class org.springframework.ai.moderation.CategoryScores
- toString() - Method in class org.springframework.ai.moderation.Generation
- toString() - Method in class org.springframework.ai.moderation.Moderation
- toString() - Method in class org.springframework.ai.moderation.ModerationMessage
- toString() - Method in class org.springframework.ai.moderation.ModerationPrompt
- toString() - Method in class org.springframework.ai.moderation.ModerationResponse
- toString() - Method in class org.springframework.ai.moderation.ModerationResult
- toString() - Method in record class org.springframework.ai.tool.definition.DefaultToolDefinition
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.ai.tool.function.FunctionToolCallback
- toString() - Method in record class org.springframework.ai.tool.metadata.DefaultToolMetadata
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.ai.tool.method.MethodToolCallback
- totalTokens() - Method in record class org.springframework.ai.chat.model.MessageAggregator.DefaultUsage
-
Returns the value of the
totalTokensrecord component. - toTypedObject(Object, Class<?>) - Static method in class org.springframework.ai.util.json.JsonParser
-
Convert a Java Object to a typed Object.
- toUpperCaseTypeValues(ObjectNode) - Static method in class org.springframework.ai.model.ModelOptionsUtils
- TRANSFORMERS - Static variable in class org.springframework.ai.model.SpringAIModels
- type() - Method in record class org.springframework.ai.chat.messages.AssistantMessage.ToolCall
-
Returns the value of the
typerecord component. - TypeResolverHelper - Class in org.springframework.ai.tool.resolution
-
A utility class that provides methods for resolving types and classes related to functions.
U
- UPPER_CASE_TYPE_VALUES - Enum constant in enum class org.springframework.ai.util.json.schema.JsonSchemaGenerator.SchemaOption
-
Convert all "type" values to upper case.
- usage(Usage) - Method in class org.springframework.ai.chat.metadata.ChatResponseMetadata.Builder
- Usage - Interface in org.springframework.ai.chat.metadata
-
Abstract Data Type (ADT) encapsulating metadata on the usage of an AI provider's API per AI request.
- USAGE_INPUT_TOKENS - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The number of tokens used in the model input (prompt).
- USAGE_INPUT_TOKENS - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.HighCardinalityKeyNames
-
The number of tokens used in the model input.
- USAGE_INPUT_TOKENS - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The number of tokens used in the model input (prompt).
- USAGE_OUTPUT_TOKENS - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The number of tokens used in the model output (completion).
- USAGE_OUTPUT_TOKENS - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The number of tokens used in the model output (generation).
- USAGE_TOTAL_TOKENS - Enum constant in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
The total number of tokens used in the model exchange.
- USAGE_TOTAL_TOKENS - Enum constant in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.HighCardinalityKeyNames
-
The total number of tokens used in the model exchange.
- USAGE_TOTAL_TOKENS - Enum constant in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
The total number of tokens used in the model exchange.
- UsageCalculator - Class in org.springframework.ai.support
-
An utility class to provide support methods handling
Usage. - usageInputTokens(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- usageInputTokens(KeyValues, EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- usageOutputTokens(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- usageTotalTokens(KeyValues, ChatModelObservationContext) - Method in class org.springframework.ai.chat.observation.DefaultChatModelObservationConvention
- usageTotalTokens(KeyValues, EmbeddingModelObservationContext) - Method in class org.springframework.ai.embedding.observation.DefaultEmbeddingModelObservationConvention
- USER - Enum constant in enum class org.springframework.ai.chat.messages.MessageType
-
A
Messageof type user, having the user role and originating from an end-user or developer. - UserMessage - Class in org.springframework.ai.chat.messages
-
A message of the type 'user' passed as input Messages with the user role are from the end-user or developer.
- UserMessage(String) - Constructor for class org.springframework.ai.chat.messages.UserMessage
- UserMessage(Resource) - Constructor for class org.springframework.ai.chat.messages.UserMessage
- UserMessage.Builder - Class in org.springframework.ai.chat.messages
V
- validateToolCallbacks(List<ToolCallback>) - Static method in interface org.springframework.ai.model.tool.ToolCallingChatOptions
- value() - Method in record class org.springframework.ai.model.SimpleApiKey
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class org.springframework.ai.chat.messages.MessageType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation.LowCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.chat.observation.ChatModelObservationDocumentation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.HighCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation.LowCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.embedding.observation.EmbeddingModelObservationDocumentation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation.LowCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.image.observation.ImageModelObservationDocumentation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.model.transformer.SummaryMetadataEnricher.SummaryType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.HighCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation.LowCardinalityKeyNames
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.tool.observation.ToolCallingObservationDocumentation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.util.json.schema.JsonSchemaGenerator.SchemaOption
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.util.json.schema.SchemaType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.util.json.schema.SpringAiSchemaModule.Option
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.ai.chat.messages.MessageType
-
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.chat.observation.ChatModelObservationDocumentation.HighCardinalityKeyNames
-
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.chat.observation.ChatModelObservationDocumentation.LowCardinalityKeyNames
-
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.chat.observation.ChatModelObservationDocumentation
-
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.embedding.EmbeddingResultMetadata.ModalityType
-
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.embedding.observation.EmbeddingModelObservationDocumentation.HighCardinalityKeyNames
-
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.embedding.observation.EmbeddingModelObservationDocumentation.LowCardinalityKeyNames
-
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.embedding.observation.EmbeddingModelObservationDocumentation
-
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.image.observation.ImageModelObservationDocumentation.HighCardinalityKeyNames
-
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.image.observation.ImageModelObservationDocumentation.LowCardinalityKeyNames
-
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.image.observation.ImageModelObservationDocumentation
-
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.model.transformer.SummaryMetadataEnricher.SummaryType
-
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.tool.observation.ToolCallingObservationDocumentation.HighCardinalityKeyNames
-
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.tool.observation.ToolCallingObservationDocumentation.LowCardinalityKeyNames
-
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.tool.observation.ToolCallingObservationDocumentation
-
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.util.json.schema.JsonSchemaGenerator.SchemaOption
-
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.util.json.schema.SchemaType
-
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.util.json.schema.SpringAiSchemaModule.Option
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variables - Variable in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- variables(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.PromptTemplate.Builder
- variables(Map<String, Object>) - Method in class org.springframework.ai.chat.prompt.SystemPromptTemplate.Builder
- VERTEX_AI - Static variable in class org.springframework.ai.model.SpringAIModels
- VIDEO - Enum constant in enum class org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityType
- violence(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- violence(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
- violenceGraphic(boolean) - Method in class org.springframework.ai.moderation.Categories.Builder
- violenceGraphic(double) - Method in class org.springframework.ai.moderation.CategoryScores.Builder
W
- width(Integer) - Method in class org.springframework.ai.image.ImageOptionsBuilder
- withDimensions(Integer) - Method in class org.springframework.ai.embedding.EmbeddingOptionsBuilder
- withModel(String) - Method in class org.springframework.ai.embedding.EmbeddingOptionsBuilder
- withTranscriptionMetadata(AudioTranscriptionMetadata) - Method in class org.springframework.ai.audio.transcription.AudioTranscription
Z
- ZHIPUAI - Static variable in class org.springframework.ai.model.SpringAIModels
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form