All Classes and Interfaces

Class
Description
Represents a response message from an AI (language model).
 
 
 
Builder for Audio.
 
Represents a request for ChatMessage augmentation.
Represents the result of a ChatMessage augmentation.
 
 
 
Represents a capability of a ChatModel or StreamingChatModel.
Represents the memory (history) of a chat conversation.
Represents a store for the ChatMemory state.
Represents a chat message.
A deserializer for ChatMessage objects.
A codec for serializing and deserializing ChatMessage objects to and from JSON.
A factory for creating ChatMessageJsonCodec objects.
 
The type of content, e.g.
Represents a language model that has a chat API.
The chat model error context.
A ChatModel listener that listens for requests, responses and errors.
The chat model request context.
The chat response context.
 
 
Represents common chat request parameters supported by most LLM providers.
 
 
 
Represents common chat response metadata supported by most LLM providers.
 
Interface for executing code.
A QueryTransformer that leverages a ChatModel to condense a given Query along with a chat memory (previous conversation history) into a concise Query.
 
A filter that checks if the value of a metadata key contains a specific string.
Abstract base interface for message content.
Represents content relevant to a user Query with the potential to enhance and ground the LLM's response.
Aggregates all Contents retrieved from all ContentRetrievers using all Querys.
Injects given Contents into a given UserMessage.
 
Retrieves Contents from an underlying data source using a given Query.
The type of content, e.g.
Utility class for calculating cosine similarity between two vectors.
Represents a custom message.
Utility class to guess the mime-type of a file from its path or URI.
 
 
A default implementation of a Content.
Default implementation of ContentAggregator intended to be suitable for the majority of use cases.
Default implementation of ContentInjector intended to be suitable for the majority of use cases.
 
A default implementation of a Document.
Default implementation of QueryRouter intended to be suitable for the majority of use cases.
Default implementation of QueryTransformer intended to be suitable for the majority of use cases.
The default implementation of RetrievalAugmentor intended to be suitable for the majority of use cases.
 
Annotation to attach a description to a class field.
A dimension aware embedding model
A ChatModel which throws a ModelDisabledException for all of its methods
An EmbeddingModel which throws a ModelDisabledException for all of its methods
An ImageModel which throws a ModelDisabledException for all of its methods
A LanguageModel which throws a ModelDisabledException for all of its methods
A ModerationModel which throws a ModelDisabledException for all of its methods
A StreamingChatModel which throws a ModelDisabledException for all of its methods
A StreamingLanguageModel which throws a ModelDisabledException for all of its methods
Represents an unstructured piece of text that usually corresponds to a content of a single file.
Utility class for loading documents.
Defines the interface for parsing an InputStream into a Document.
A factory for creating DocumentParser instances through SPI.
Defines the interface for a Document source.
Defines the interface for splitting a document into text segments.
A factory for creating DocumentSplitter instances through SPI.
Defines the interface for transforming a Document.
Represents a dense vector embedding of a text.
Represents a matched embedding along with its relevance score (derivative of cosine distance), ID, and original embedded content.
Represents a model that can convert a given text into an embedding (vector representation of the text).
A factory for creating EmbeddingModel instances through SPI.
Represents a request to search in an EmbeddingStore.
 
Represents a result of a search in an EmbeddingStore.
Represents a store for embeddings, also known as a vector database.
A ContentRetriever that retrieves from an EmbeddingStore.
 
The EmbeddingStoreIngestor represents an ingestion pipeline and is responsible for ingesting Documents into an EmbeddingStore.
EmbeddingStoreIngestor builder.
 
 
Utility methods for creating common exceptions.
A QueryTransformer that utilizes a ChatModel to expand a given Query.
 
Indicates that a class/constructor/method is experimental and might change in the future.
This class represents a filter that can be applied during search in an EmbeddingStore.
Parses a filter expression string into a Filter object.
The reason why a model call finished.
 
Represents an image as a URL or as a Base64-encoded string.
Builder for Image.
Represents an image with a DetailLevel.
The detail level of an Image.
Text to Image generator model.
Represents the result of a EmbeddingStoreIngestor ingestion process.
Implementation of ChatMemoryStore that stores state of ChatMemory (chat messages) in-memory.
Indicates that the annotated class is intended for internal use only within the library.
 
 
 
 
 
 
 
 
 
 
Annotation to mark methods where JaCoCo coverage should be ignored.
JSON helper class.
The abstract JSON codec interface.
 
 
 
 
 
 
A factory for creating Json.JsonCodec instances through SPI.
 
 
 
 
 
 
 
 
 
Can reference JsonObjectSchema when recursion is required.
 
 
 
A base interface for a JSON schema element.
 
 
 
 
Utility class with lambda-based streaming response handlers.
 
Represents a language model that has a simple text interface (as opposed to a chat interface).
A QueryRouter that utilizes a ChatModel to make a routing decision.
Strategy applied if the call to the LLM fails of if LLM does not return a valid response.
 
 
Represents metadata of a Document or a TextSegment.
Represents metadata that may be useful or necessary for retrieval or augmentation purposes.
A helper class for building a Filter for Metadata key.
An exception thrown by a model that could be disabled by a user.
 
 
Represents moderation status.
Represents a model that can moderate text.
 
 
 
Parameter of a Tool
 
Builder for PdfFile.
 
Represents a prompt (an input text sent to the LLM).
Represents a template of a prompt that can be reused multiple times.
A factory for creating prompt templates.
Interface for input for the factory.
Interface for a prompt template.
Represents a query from the user intended for retrieving relevant Contents.
Routes the given Query to one or multiple ContentRetrievers.
Transforms the given Query into one or multiple Querys.
 
Implementation of Reciprocal Rank Fusion.
Utility class for converting between cosine similarity and relevance score.
A ContentAggregator that performs re-ranking using a ScoringModel, such as Cohere.
 
Represents the response from various types of models, including language, chat, embedding, and moderation models.
 
 
 
 
Augments the provided ChatMessage with retrieved Contents.
Utility class for retrying actions.
This class encapsulates a retry policy.
This class encapsulates a retry policy builder.
Represents a model capable of scoring a text against a query.
Utility wrapper around ServiceLoader.load().
Represents a language model that has a chat API and can stream a response one token at a time.
Represents a handler for a StreamingChatModel response.
Represents a language model that has a simple text interface (as opposed to a chat interface) and can stream a response one token at a time.
Represents a handler for streaming responses from a language model.
Represents a structured prompt.
Utility class for StructuredPrompt.
Represents a factory for structured prompts.
Utility class for structured prompts.
Represents a system message, typically defined by a developer.
Represents a text content.
Represents a semantically meaningful segment (chunk/piece/fragment) of a larger entity such as a document or chat conversation.
Defines the interface for transforming a TextSegment.
 
Represents an interface for estimating the count of tokens in various text types such as a text, prompt, text segment, etc.
Represents the token usage of a response.
Java methods annotated with @Tool are considered tools/functions that language model can execute/call.
Specifies how ChatModel should use tools.
Represents an LLM-generated request to execute a tool.
ToolExecutionRequest builder static inner class.
Represents the result of a tool execution in response to a ToolExecutionRequest.
If a Tool method parameter is annotated with this annotation, memory id (parameter annotated with @MemoryId in AI Service) will be injected automatically.
Describes a tool that language model can execute.
ToolSpecification builder static inner class.
Utility methods for ToolSpecifications.
 
 
Represents a message from a user, typically an end user of the application.
 
Utility methods.
Utility class for validating method arguments.
 
Builder for Video.
 
Utility class for working with virtual threads introduced in Java 21.
A ContentRetriever that retrieves relevant Content from the web using a WebSearchEngine.
 
Represents a web search engine that can be used to perform searches on the Web in response to a user query.
Represents general information about the web search performed.
Represents an organic search results are the web pages that are returned by the search engine in response to a search query.
Represents a search request that can be made by the user to perform searches in any implementation of WebSearchEngine.
 
Represents the response of a web search performed.