All Classes and Interfaces
Class
Description
Represents a message with the 'assistant' role in a chat conversation.
Interface for handling streaming chat completion requests.
The ChatCompletionRequest class represents a request to create a chat completion (an assistant reply to the conversation).
The ChatCompletionResponse class represents a response from the Mistral API when creating a chat completion.
Represents a single message in a chat conversation, serving as the base for different message types (system, user, assistant, tool).
Represents a choice in a chat completion response.
Represents a part of the message content.
Represents a delta update within a choice during a streamed chat completion.
Represents the delta content within a streamed chat completion choice.
Represents a document URL part of the message content.
The EmbeddingRequest class represents a request to create embedding for a list of strings.
The EmbeddingResponse class represents a response from the Mistral API when creating embeddings.
Represents the reason why a chat completion generation finished.
Represents the definition of a function that can be called by the model.
Represents the function call requested by the model, including the function name and its arguments as a JSON string.
Represents the name of a function, used when specifying a particular function for tool_choice.
The HttpService class is responsible for making HTTP requests to the Mistral AI API.
Represents the URL and optional detail level for an image within a message content chunk.
Represents an image URL part of the message content.
Represents the JSON schema definition used within ResponseFormat when type is json_schema.
The ListModelsResponse contains a list of all available models according to the Mistral AI API.
A chunk of a message in a conversation.
A builder class for creating a list of
ChatMessage
objects for a chat completion request.The role of the message.
The MistralClient is the main class that interacts with all components of this library.
The MistralService class provides methods to interact with the Mistral AI API.
Represents a model available in the Mistral AI API.
Represents the capabilities of a Mistral AI model.
Represents the predicted output to optimize response time for ChatCompletionRequest.
Represents a reference part of the message content, linking to specific source materials or documents.
The response format of a completion request.
The response formats supported by mistral.
Represents the object variant for the 'tool_choice' parameter in a ChatCompletionRequest.
Represents a message with the 'system' role in a chat conversation.
Represents a text part of the message content.
Represents a tool that the model can call.
Represents a tool call requested by the model as part of an Assistant message.
Defines the possible string values for the 'tool_choice' parameter in a ChatCompletionRequest.
Represents the possible options for the 'tool_choice' parameter in a ChatCompletionRequest.
Custom deserializer for the ToolChoiceOption sealed interface.
Represents a message with the 'tool' role in a chat conversation.
Defines the type of a tool.
Represents a message with the 'user' role in a chat conversation.