All Classes and Interfaces
Class
Description
Represents a response message from an AI (language model).
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.
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.Injects given
Content
s into a given UserMessage
.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
ChatLanguageModel
which throws a ModelDisabledException
for all of its methodsAn
EmbeddingModel
which throws a ModelDisabledException
for all of its methodsAn
ImageModel
which throws a ModelDisabledException
for all of its methodsA
LanguageModel
which throws a ModelDisabledException
for all of its methodsA
ModerationModel
which throws a ModelDisabledException
for all of its methodsA
StreamingChatLanguageModel
which throws a ModelDisabledException
for all of its methodsA
StreamingLanguageModel
which throws a ModelDisabledException
for all of its methodsRepresents 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.
Defines the interface for a Document source.
Defines the interface for splitting a document into text segments.
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).
Represents a store for embeddings, also known as a vector database.
A
ContentRetriever
backed by an EmbeddingStore
.EmbeddingStoreIngestor is responsible for the ingestion of documents into an embedding store.
EmbeddingStoreIngestor builder.
Utility methods for creating common exceptions.
The reason why a model call finished.
A codec for serializing and deserializing
ChatMessage
objects to and from JSON.Represents an image.
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.
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.
Indicates that a class/constructor/method is experimental and might change in the future.
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
Content
s.Routes the given
Query
to one or multiple ContentRetriever
s.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
UserMessage
with retrieved content.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 that language model can use.
Represents a 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
ToolSpecification
s.Represents a message from a user, typically an end user of the application.
Utility methods.
Utility class for validating method arguments.
Indicates that a class/constructor/method is planned to change soon.