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 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.Injects given
Content
s into a given UserMessage
.The type of content, e.g.
Utility class for calculating cosine similarity between two vectors.
Utility class to guess the mime-type of a file from its path or URI.
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 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
.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 Document
s into an EmbeddingStore
.EmbeddingStoreIngestor builder.
Deprecated.
Utility methods for creating common exceptions.
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.
Deprecated.
use Jackson's ObjectMapper
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.
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
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
ChatMessage
with retrieved Content
s.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.
Represents a text content.
Builder for
TextFile
.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.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.
Builder for
Video
.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.
EmbeddingStoreContentRetriever
instead.