All Classes and Interfaces

Class
Description
Represents a response message from an AI (language model).
 
Represents a request for ChatMessage augmentation.
Represents the result of a ChatMessage augmentation.
 
Represents a chain step that takes an input and produces an output.
Represents a language model that has a chat interface.
Represents the memory (history) of a chat conversation.
Represents a store for the ChatMemory state.
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.
The error context.
A ChatLanguageModel listener that listens for requests, responses and errors.
A request to the ChatLanguageModel or StreamingChatLanguageModel, intended to be used with ChatModelListener.
The request context.
A response from the ChatLanguageModel or StreamingChatLanguageModel, intended to be used with ChatModelListener.
The response context.
Interface for executing code.
A QueryTransformer that leverages a ChatLanguageModel to condense a given Query along with a chat memory (previous conversation history) into a concise Query.
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.
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.
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.
 
Default implementation of StructuredPromptFactory.
Annotation to attach a description to a class field.
A dimension aware embedding model
A ChatLanguageModel 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 StreamingChatLanguageModel 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 ChatLanguageModel 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.
A codec for serializing and deserializing ChatMessage objects to and from JSON.
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.
Implementation of ChatMemoryStore that stores state of ChatMemory (chat messages) in-memory.
 
 
 
 
 
 
 
 
Annotation to mark methods where JaCoCo coverage should be ignored.
A utility class for JSON.
The abstract JSON codec interface.
A factory for creating Json.JsonCodec instances through SPI.
Represents a property in a JSON schema.
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 ChatLanguageModel 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.
 
 
Represents an output parser.
Parameter of a Tool
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.
Deprecated.
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 interface and can stream a response one token at a time.
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.
Classifies given text according to specified enum.
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, message, prompt, text segment, etc.
Represents an interface for estimating the count of tokens in various texts, text segments, etc.
Represents an interface for estimating the count of tokens in various text types such as a text, prompt, text segment, etc.
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.
Represents an LLM-generated request to execute a tool.
ToolExecutionRequest builder static inner class.
Utility class for ToolExecutionRequest.
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.
Represents the parameters of a tool.
ToolParameters builder static inner class.
Describes a Tool.
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.
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.