Index
All Classes and Interfaces|All Packages|Serialized Form
A
- assistant(String) - Method in class nl.dannyj.mistral.builders.MessageListBuilder
-
Adds a message with the assistant role to the list with the provided content.
- ASSISTANT - Enum constant in enum class nl.dannyj.mistral.models.completion.MessageRole
B
- build() - Method in class nl.dannyj.mistral.builders.MessageListBuilder
-
Returns the list of Message objects that have been added.
- build() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
- build() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest.EmbeddingRequestBuilder
- builder() - Static method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- builder() - Static method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
C
- canEqual(Object) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- canEqual(Object) - Method in class nl.dannyj.mistral.models.completion.Message
- canEqual(Object) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
- ChatCompletionChunkCallback - Interface in nl.dannyj.mistral.net
-
Interface for handling streaming chat completion requests.
- ChatCompletionRequest - Class in nl.dannyj.mistral.models.completion
-
The ChatCompletionRequest class represents a request to create a chat completion (an assistant reply to the conversation).
- ChatCompletionRequest() - Constructor for class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- ChatCompletionRequest(String, List<Message>, Double, Double, Integer, Boolean, boolean, Long, ResponseFormat) - Constructor for class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- ChatCompletionRequest.ChatCompletionRequestBuilder - Class in nl.dannyj.mistral.models.completion
- ChatCompletionResponse - Class in nl.dannyj.mistral.models.completion
-
The ChatCompletionResponse class represents a response from the Mistral API when creating a chat completion.
- ChatCompletionResponse() - Constructor for class nl.dannyj.mistral.models.completion.ChatCompletionResponse
- ChatCompletionResponse(String, String, long, String, List<Choice>, Usage) - Constructor for class nl.dannyj.mistral.models.completion.ChatCompletionResponse
- Choice - Class in nl.dannyj.mistral.models.completion
-
Represents a choice in a chat completion.
- Choice() - Constructor for class nl.dannyj.mistral.models.completion.Choice
- Choice(int, Message, String, String) - Constructor for class nl.dannyj.mistral.models.completion.Choice
- createChatCompletion(ChatCompletionRequest) - Method in class nl.dannyj.mistral.MistralClient
-
Use the Mistral AI API to create a chat completion (an assistant reply to the conversation).
- createChatCompletion(ChatCompletionRequest) - Method in class nl.dannyj.mistral.services.MistralService
-
Use the Mistral AI API to create a chat completion (an assistant reply to the conversation).
- createChatCompletionAsync(ChatCompletionRequest) - Method in class nl.dannyj.mistral.MistralClient
-
Use the Mistral AI API to create a chat completion (an assistant reply to the conversation).
- createChatCompletionAsync(ChatCompletionRequest) - Method in class nl.dannyj.mistral.services.MistralService
-
Use the Mistral AI API to create a chat completion (an assistant reply to the conversation).
- createChatCompletionStream(ChatCompletionRequest, ChatCompletionChunkCallback) - Method in class nl.dannyj.mistral.MistralClient
- createChatCompletionStream(ChatCompletionRequest, ChatCompletionChunkCallback) - Method in class nl.dannyj.mistral.services.MistralService
- createEmbedding(EmbeddingRequest) - Method in class nl.dannyj.mistral.MistralClient
-
This method is used to create an embedding using the Mistral AI API.
- createEmbedding(EmbeddingRequest) - Method in class nl.dannyj.mistral.services.MistralService
-
This method is used to create an embedding using the Mistral AI API.
- createEmbeddingAsync(EmbeddingRequest) - Method in class nl.dannyj.mistral.MistralClient
-
This method is used to create an embedding using the Mistral AI API.
- createEmbeddingAsync(EmbeddingRequest) - Method in class nl.dannyj.mistral.services.MistralService
-
This method is used to create an embedding using the Mistral AI API.
D
- DeltaChoice - Class in nl.dannyj.mistral.models.completion
-
Represents a choice of a streamed message chunk in a completion.
- DeltaChoice() - Constructor for class nl.dannyj.mistral.models.completion.DeltaChoice
- DeltaChoice(int, Message, String, String) - Constructor for class nl.dannyj.mistral.models.completion.DeltaChoice
E
- EmbeddingRequest - Class in nl.dannyj.mistral.models.embedding
-
The EmbeddingRequest class represents a request to create embedding for a list of strings.
- EmbeddingRequest() - Constructor for class nl.dannyj.mistral.models.embedding.EmbeddingRequest
- EmbeddingRequest(String, List<String>, String) - Constructor for class nl.dannyj.mistral.models.embedding.EmbeddingRequest
- EmbeddingRequest.EmbeddingRequestBuilder - Class in nl.dannyj.mistral.models.embedding
- EmbeddingResponse - Class in nl.dannyj.mistral.models.embedding
-
The EmbeddingResponse class represents a response from the Mistral API when creating embeddings.
- EmbeddingResponse() - Constructor for class nl.dannyj.mistral.models.embedding.EmbeddingResponse
- EmbeddingResponse(String, String, List<FloatEmbedding>, String, Usage) - Constructor for class nl.dannyj.mistral.models.embedding.EmbeddingResponse
- encodingFormat(String) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest.EmbeddingRequestBuilder
-
The format of the output data.
- equals(Object) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- equals(Object) - Method in class nl.dannyj.mistral.models.completion.Message
- equals(Object) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
F
- FloatEmbedding - Class in nl.dannyj.mistral.models.embedding
- FloatEmbedding() - Constructor for class nl.dannyj.mistral.models.embedding.FloatEmbedding
- FloatEmbedding(String, List<Float>, int) - Constructor for class nl.dannyj.mistral.models.embedding.FloatEmbedding
G
- get(String) - Method in class nl.dannyj.mistral.services.HttpService
-
Makes a GET request to the specified URL path.
- getApiKey() - Method in class nl.dannyj.mistral.MistralClient
- getChoices() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
-
The generated completions.
- getChoices() - Method in class nl.dannyj.mistral.models.completion.MessageChunk
-
The generated delta completions.
- getCompletionTokens() - Method in class nl.dannyj.mistral.models.usage.Usage
-
The number of tokens used for the completion ("output tokens").
- getContent() - Method in class nl.dannyj.mistral.models.completion.Message
-
The content of the message.
- getCreated() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
-
The time the chat completion was created in seconds since the epoch.
- getCreated() - Method in class nl.dannyj.mistral.models.completion.MessageChunk
-
The time the message chunk was created.
- getCreated() - Method in class nl.dannyj.mistral.models.model.Model
-
Creation time of the model in seconds since the Unix epoch.
- getCreated() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- getData() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingResponse
-
The embeddings that were created for the list of input strings.
- getEmbedding() - Method in class nl.dannyj.mistral.models.embedding.FloatEmbedding
-
The embeddings for the input strings.
- getEncodingFormat() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
-
The format of the output data.
- getFinishReason() - Method in class nl.dannyj.mistral.models.completion.Choice
-
Reason for the completion to finish.
- getFinishReason() - Method in class nl.dannyj.mistral.models.completion.DeltaChoice
-
Reason for the completion to finish.
- getFormat() - Method in enum class nl.dannyj.mistral.models.completion.ResponseFormats
-
Returns a lowercase string representation of the format.
- getGroup() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- getHttpClient() - Method in class nl.dannyj.mistral.MistralClient
- getId() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
-
Unique identifier for this response.
- getId() - Method in class nl.dannyj.mistral.models.completion.MessageChunk
-
The ID of the message chunk.
- getId() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingResponse
-
Unique identifier for this response.
- getId() - Method in class nl.dannyj.mistral.models.model.Model
-
The ID of the model.
- getId() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- getIndex() - Method in class nl.dannyj.mistral.models.completion.Choice
-
The index of the choice.
- getIndex() - Method in class nl.dannyj.mistral.models.completion.DeltaChoice
-
The index of the choice.
- getIndex() - Method in class nl.dannyj.mistral.models.embedding.FloatEmbedding
-
The index of the input string in the input list.
- getInput() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
-
The list of strings to embed.
- getLogProbs() - Method in class nl.dannyj.mistral.models.completion.Choice
- getLogProbs() - Method in class nl.dannyj.mistral.models.completion.DeltaChoice
- getMaxTokens() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The maximum number of tokens to generate in the completion.
- getMessage() - Method in class nl.dannyj.mistral.models.completion.Choice
-
The message that was generated.
- getMessage() - Method in class nl.dannyj.mistral.models.completion.DeltaChoice
-
The message that was generated.
- getMessages() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The prompt(s) to generate completions for, encoded as a list of dict with role and content.
- getMistralService() - Method in class nl.dannyj.mistral.MistralClient
- getModel() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
ID of the model to use.
- getModel() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
-
The model used to generate the completion.
- getModel() - Method in class nl.dannyj.mistral.models.completion.MessageChunk
-
The model used to generate the completions.
- getModel() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
-
The ID of the model to use for this request.
- getModel() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingResponse
-
The model used to create the embeddings.
- getModels() - Method in class nl.dannyj.mistral.models.model.ListModelsResponse
-
The list of available models.
- getObject() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
-
Undocumented, seems to be the type of the response.
- getObject() - Method in class nl.dannyj.mistral.models.completion.MessageChunk
-
Always chat.completion.chunk
- getObject() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingResponse
-
Undocumented, seems to be the type of the response.
- getObject() - Method in class nl.dannyj.mistral.models.embedding.FloatEmbedding
-
Undocumented, seems to be the type of the response.
- getObject() - Method in class nl.dannyj.mistral.models.model.ListModelsResponse
-
Undocumented, seems to be the type of the response.
- getObject() - Method in class nl.dannyj.mistral.models.model.Model
- getObject() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- getObjectMapper() - Method in class nl.dannyj.mistral.MistralClient
- getOrganization() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- getOwnedBy() - Method in class nl.dannyj.mistral.models.model.Model
-
Owner of the model.
- getParent() - Method in class nl.dannyj.mistral.models.model.Model
- getPermission() - Method in class nl.dannyj.mistral.models.model.Model
- getPromptTokens() - Method in class nl.dannyj.mistral.models.usage.Usage
-
The number of tokens used for the prompt ("input tokens").
- getRandomSeed() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The seed to use for random sampling.
- getResponseFormat() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The response format of the completion request.
- getRole() - Method in class nl.dannyj.mistral.models.completion.Message
-
The role of the message.
- getRole() - Method in enum class nl.dannyj.mistral.models.completion.MessageRole
-
Returns a lowercase string representation of the role.
- getRoot() - Method in class nl.dannyj.mistral.models.model.Model
- getStream() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
Whether to stream back partial progress.
- getTemperature() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
What sampling temperature to use, between 0.0 and 1.0.
- getToolCalls() - Method in class nl.dannyj.mistral.models.completion.Message
-
Unimplemented.
- getTopP() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
Nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
- getTotalTokens() - Method in class nl.dannyj.mistral.models.usage.Usage
-
The total number of tokens used (prompt tokens + completion tokens).
- getType() - Method in class nl.dannyj.mistral.models.completion.ResponseFormat
-
The type of the response format.
- getUsage() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
-
The tokens used to generate the completion.
- getUsage() - Method in class nl.dannyj.mistral.models.completion.MessageChunk
-
The tokens used to generate the completion.
- getUsage() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingResponse
-
The token usage of the request.
H
- hashCode() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- hashCode() - Method in class nl.dannyj.mistral.models.completion.Message
- hashCode() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
- HttpService - Class in nl.dannyj.mistral.services
-
The HttpService class is responsible for making HTTP requests to the Mistral AI API.
- HttpService(MistralClient) - Constructor for class nl.dannyj.mistral.services.HttpService
-
Constructor that initializes the HttpService with a provided MistralClient.
I
- input(List<String>) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest.EmbeddingRequestBuilder
-
The list of strings to embed.
- intercept(Interceptor.Chain) - Method in class nl.dannyj.mistral.interceptors.MistralHeaderInterceptor
- InvalidJsonException - Exception in nl.dannyj.mistral.exceptions
- InvalidJsonException() - Constructor for exception nl.dannyj.mistral.exceptions.InvalidJsonException
- InvalidJsonException(String) - Constructor for exception nl.dannyj.mistral.exceptions.InvalidJsonException
- InvalidJsonException(String, Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.InvalidJsonException
- InvalidJsonException(Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.InvalidJsonException
- isAllowCreateEngine() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isAllowFineTuning() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isAllowLogprobs() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isAllowSampling() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isAllowSearchIndices() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isAllowView() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isBlocking() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- isSafePrompt() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
Whether to inject a safety prompt before all conversations.
J
- JSON - Enum constant in enum class nl.dannyj.mistral.models.completion.ResponseFormats
L
- listModels() - Method in class nl.dannyj.mistral.MistralClient
-
Lists all models available according to the Mistral AI API.
- listModels() - Method in class nl.dannyj.mistral.services.MistralService
-
Lists all models available according to the Mistral AI API.
- listModelsAsync() - Method in class nl.dannyj.mistral.MistralClient
-
Lists all models available according to the Mistral AI API.
- listModelsAsync() - Method in class nl.dannyj.mistral.services.MistralService
-
Lists all models available according to the Mistral AI API.
- ListModelsResponse - Class in nl.dannyj.mistral.models.model
-
The ListModelsResponse contains a list of all available models according to the Mistral AI API.
- ListModelsResponse() - Constructor for class nl.dannyj.mistral.models.model.ListModelsResponse
- ListModelsResponse(String, List<Model>) - Constructor for class nl.dannyj.mistral.models.model.ListModelsResponse
M
- maxTokens(Integer) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
The maximum number of tokens to generate in the completion.
- message(Message) - Method in class nl.dannyj.mistral.builders.MessageListBuilder
-
Adds a custom Message object to the list.
- Message - Class in nl.dannyj.mistral.models.completion
-
A message in a conversation.
- Message() - Constructor for class nl.dannyj.mistral.models.completion.Message
- Message(MessageRole, String) - Constructor for class nl.dannyj.mistral.models.completion.Message
- Message(MessageRole, String, List<String>) - Constructor for class nl.dannyj.mistral.models.completion.Message
- MessageChunk - Class in nl.dannyj.mistral.models.completion
-
A chunk of a message in a conversation.
- MessageChunk() - Constructor for class nl.dannyj.mistral.models.completion.MessageChunk
- MessageChunk(String, String, long, String, List<DeltaChoice>, Usage) - Constructor for class nl.dannyj.mistral.models.completion.MessageChunk
- MessageListBuilder - Class in nl.dannyj.mistral.builders
-
The MessageListBuilder class is a builder class for creating a list of Message objects.
- MessageListBuilder() - Constructor for class nl.dannyj.mistral.builders.MessageListBuilder
-
Default constructor that initializes an empty list of Message objects.
- MessageListBuilder(List<Message>) - Constructor for class nl.dannyj.mistral.builders.MessageListBuilder
-
Constructor that initializes the list of Message objects with a provided list.
- MessageRole - Enum Class in nl.dannyj.mistral.models.completion
-
The role of the message.
- messages(List<Message>) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
The prompt(s) to generate completions for, encoded as a list of dict with role and content.
- MistralAPIException - Exception in nl.dannyj.mistral.exceptions
- MistralAPIException() - Constructor for exception nl.dannyj.mistral.exceptions.MistralAPIException
- MistralAPIException(String) - Constructor for exception nl.dannyj.mistral.exceptions.MistralAPIException
- MistralAPIException(String, Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.MistralAPIException
- MistralAPIException(Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.MistralAPIException
- MistralClient - Class in nl.dannyj.mistral
-
The MistralClient is the main class that interacts with all components of this library.
- MistralClient() - Constructor for class nl.dannyj.mistral.MistralClient
-
Default constructor that initializes the MistralClient with the API key from the environment variable "MISTRAL_API_KEY".
- MistralClient(String) - Constructor for class nl.dannyj.mistral.MistralClient
-
Constructor that initializes the MistralClient with a provided API key.
- MistralClient(String, ObjectMapper) - Constructor for class nl.dannyj.mistral.MistralClient
-
Constructor that initializes the MistralClient with a provided API key and object mapper.
- MistralClient(String, OkHttpClient) - Constructor for class nl.dannyj.mistral.MistralClient
-
Constructor that initializes the MistralClient with a provided API key and HTTP client.
- MistralClient(String, OkHttpClient, ObjectMapper) - Constructor for class nl.dannyj.mistral.MistralClient
-
Constructor that initializes the MistralClient with a provided API key, HTTP client, and object mapper.
- MistralHeaderInterceptor - Class in nl.dannyj.mistral.interceptors
- MistralHeaderInterceptor(MistralClient) - Constructor for class nl.dannyj.mistral.interceptors.MistralHeaderInterceptor
- MistralService - Class in nl.dannyj.mistral.services
-
The MistralService class provides methods to interact with the Mistral AI API.
- MistralService(MistralClient, HttpService) - Constructor for class nl.dannyj.mistral.services.MistralService
-
Constructor that initializes the MistralService with a provided MistralClient and HttpService.
- model(String) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
ID of the model to use.
- model(String) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest.EmbeddingRequestBuilder
-
The ID of the model to use for this request.
- Model - Class in nl.dannyj.mistral.models.model
-
The Model class represents a model in the Mistral AI API.
- Model() - Constructor for class nl.dannyj.mistral.models.model.Model
- Model(String, String, long, String, String, String, List<ModelPermission>) - Constructor for class nl.dannyj.mistral.models.model.Model
- ModelPermission - Class in nl.dannyj.mistral.models.model
-
All of these are currently not documented by the API docs.
- ModelPermission() - Constructor for class nl.dannyj.mistral.models.model.ModelPermission
- ModelPermission(String, String, long, boolean, boolean, boolean, boolean, boolean, boolean, String, String, boolean) - Constructor for class nl.dannyj.mistral.models.model.ModelPermission
N
- nl.dannyj.mistral - package nl.dannyj.mistral
- nl.dannyj.mistral.builders - package nl.dannyj.mistral.builders
- nl.dannyj.mistral.exceptions - package nl.dannyj.mistral.exceptions
- nl.dannyj.mistral.interceptors - package nl.dannyj.mistral.interceptors
- nl.dannyj.mistral.models - package nl.dannyj.mistral.models
- nl.dannyj.mistral.models.completion - package nl.dannyj.mistral.models.completion
- nl.dannyj.mistral.models.embedding - package nl.dannyj.mistral.models.embedding
- nl.dannyj.mistral.models.model - package nl.dannyj.mistral.models.model
- nl.dannyj.mistral.models.usage - package nl.dannyj.mistral.models.usage
- nl.dannyj.mistral.net - package nl.dannyj.mistral.net
- nl.dannyj.mistral.services - package nl.dannyj.mistral.services
O
- onChunkReceived(MessageChunk) - Method in interface nl.dannyj.mistral.net.ChatCompletionChunkCallback
-
Called when a new message chunk of the response is received.
- onComplete() - Method in interface nl.dannyj.mistral.net.ChatCompletionChunkCallback
-
Called when the entire response is received.
- onError(Exception) - Method in interface nl.dannyj.mistral.net.ChatCompletionChunkCallback
-
Called when an error occurs during the streaming request.
P
- post(String, String) - Method in class nl.dannyj.mistral.services.HttpService
-
Makes a POST request to the specified URL path with the provided body.
R
- randomSeed(Long) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
The seed to use for random sampling.
- Request - Interface in nl.dannyj.mistral.models
- Response - Interface in nl.dannyj.mistral.models
- responseFormat(ResponseFormats) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
- ResponseFormat - Class in nl.dannyj.mistral.models.completion
-
The response format of a completion request.
- ResponseFormat() - Constructor for class nl.dannyj.mistral.models.completion.ResponseFormat
- ResponseFormat(ResponseFormats) - Constructor for class nl.dannyj.mistral.models.completion.ResponseFormat
- ResponseFormats - Enum Class in nl.dannyj.mistral.models.completion
-
The response formats supported by mistral.
S
- safePrompt(boolean) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
Whether to inject a safety prompt before all conversations.
- setApiKey(String) - Method in class nl.dannyj.mistral.MistralClient
- setContent(String) - Method in class nl.dannyj.mistral.models.completion.Message
-
The content of the message.
- setEncodingFormat(String) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
-
The format of the output data.
- setHttpClient(OkHttpClient) - Method in class nl.dannyj.mistral.MistralClient
- setInput(List<String>) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
-
The list of strings to embed.
- setMaxTokens(Integer) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The maximum number of tokens to generate in the completion.
- setMessages(List<Message>) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The prompt(s) to generate completions for, encoded as a list of dict with role and content.
- setMistralService(MistralService) - Method in class nl.dannyj.mistral.MistralClient
- setModel(String) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
ID of the model to use.
- setModel(String) - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
-
The ID of the model to use for this request.
- setObjectMapper(ObjectMapper) - Method in class nl.dannyj.mistral.MistralClient
- setRandomSeed(Long) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The seed to use for random sampling.
- setResponseFormat(ResponseFormat) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
The response format of the completion request.
- setRole(MessageRole) - Method in class nl.dannyj.mistral.models.completion.Message
-
The role of the message.
- setSafePrompt(boolean) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
Whether to inject a safety prompt before all conversations.
- setStream(Boolean) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
Whether to stream back partial progress.
- setTemperature(Double) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
What sampling temperature to use, between 0.0 and 1.0.
- setToolCalls(List<String>) - Method in class nl.dannyj.mistral.models.completion.Message
-
Unimplemented.
- setTopP(Double) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
-
Nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
- setType(ResponseFormats) - Method in class nl.dannyj.mistral.models.completion.ResponseFormat
-
The type of the response format.
- stream(Boolean) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
Whether to stream back partial progress.
- streamPost(String, String, Callback) - Method in class nl.dannyj.mistral.services.HttpService
-
Makes a streaming POST request to the specified URL path with the provided body.
- system(String) - Method in class nl.dannyj.mistral.builders.MessageListBuilder
-
Adds a message with the system role to the list with the provided content.
- SYSTEM - Enum constant in enum class nl.dannyj.mistral.models.completion.MessageRole
T
- temperature(Double) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
What sampling temperature to use, between 0.0 and 1.0.
- TEXT - Enum constant in enum class nl.dannyj.mistral.models.completion.ResponseFormats
- topP(Double) - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
-
Nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
- toString() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest.ChatCompletionRequestBuilder
- toString() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionRequest
- toString() - Method in class nl.dannyj.mistral.models.completion.ChatCompletionResponse
- toString() - Method in class nl.dannyj.mistral.models.completion.Choice
- toString() - Method in class nl.dannyj.mistral.models.completion.DeltaChoice
- toString() - Method in class nl.dannyj.mistral.models.completion.Message
- toString() - Method in class nl.dannyj.mistral.models.completion.ResponseFormat
- toString() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest.EmbeddingRequestBuilder
- toString() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingRequest
- toString() - Method in class nl.dannyj.mistral.models.embedding.EmbeddingResponse
- toString() - Method in class nl.dannyj.mistral.models.embedding.FloatEmbedding
- toString() - Method in class nl.dannyj.mistral.models.model.ListModelsResponse
- toString() - Method in class nl.dannyj.mistral.models.model.Model
- toString() - Method in class nl.dannyj.mistral.models.model.ModelPermission
- toString() - Method in class nl.dannyj.mistral.models.usage.Usage
U
- UnexpectedResponseEndException - Exception in nl.dannyj.mistral.exceptions
- UnexpectedResponseEndException() - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseEndException
- UnexpectedResponseEndException(String) - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseEndException
- UnexpectedResponseEndException(String, Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseEndException
- UnexpectedResponseEndException(Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseEndException
- UnexpectedResponseException - Exception in nl.dannyj.mistral.exceptions
- UnexpectedResponseException() - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseException
- UnexpectedResponseException(String) - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseException
- UnexpectedResponseException(String, Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseException
- UnexpectedResponseException(Throwable) - Constructor for exception nl.dannyj.mistral.exceptions.UnexpectedResponseException
- Usage - Class in nl.dannyj.mistral.models.usage
- Usage() - Constructor for class nl.dannyj.mistral.models.usage.Usage
- Usage(int, int, int) - Constructor for class nl.dannyj.mistral.models.usage.Usage
- user(String) - Method in class nl.dannyj.mistral.builders.MessageListBuilder
-
Adds a message with the user role to the list with the provided content.
- USER - Enum constant in enum class nl.dannyj.mistral.models.completion.MessageRole
V
- valueOf(String) - Static method in enum class nl.dannyj.mistral.models.completion.MessageRole
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class nl.dannyj.mistral.models.completion.ResponseFormats
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class nl.dannyj.mistral.models.completion.MessageRole
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class nl.dannyj.mistral.models.completion.ResponseFormats
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form