Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addAllMessages(List<JSONObject>) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addAllTools(List<DeepSeekToolDefinition>) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addAssistantMessage(String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addAssistantMessage(String, String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- additionalProperties(boolean) - Method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- addSystemMessage(String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addSystemMessage(String, String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addTool(DeepSeekToolDefinition) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addToolMessage(String, String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addToolMessage(String, String, String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addUserMessage(String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- addUserMessage(String, String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- allowAdditionalProperties() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition.Builder
- anyOf(DeepSeekJsonSchema...) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- arguments() - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolCallContext
-
Returns the value of the
argumentsrecord component. - arraySchema(DeepSeekJsonSchema) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- assistantMessage() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Convenience method to get the message content from the first choice.
B
- balance() - Method in class de.entwicklertraining.deepseek4j.DeepSeekClient.DeepSeekUser
- booleanSchema(String) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- build() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- build() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition.Builder
- build() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest.Builder
- build() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest.Builder
- builder(DeepSeekClient) - Static method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- builder(DeepSeekClient) - Static method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest
- builder(DeepSeekClient) - Static method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest
- builder(String) - Static method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition
- Builder(DeepSeekClient) - Constructor for class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- Builder(DeepSeekClient) - Constructor for class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest.Builder
- Builder(DeepSeekClient) - Constructor for class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest.Builder
C
- calculateTokenCount(String) - Method in class de.entwicklertraining.deepseek4j.DeepSeekTokenService
- callback() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition
- callback(DeepSeekToolsCallback) - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition.Builder
- chat() - Method in class de.entwicklertraining.deepseek4j.DeepSeekClient
- completion() - Method in class de.entwicklertraining.deepseek4j.DeepSeekClient.DeepSeekChat
- content() - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolResult
-
Returns the value of the
contentrecord component. - createResponse(byte[]) - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
-
If the request expects a binary response, implement this method to produce the DeepSeekResponse from raw bytes.
- createResponse(String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- createResponse(String) - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
- createResponse(String) - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest
- createResponse(String) - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest
D
- de.entwicklertraining.deepseek4j - package de.entwicklertraining.deepseek4j
- de.entwicklertraining.deepseek4j.chat.completion - package de.entwicklertraining.deepseek4j.chat.completion
- de.entwicklertraining.deepseek4j.exceptions - package de.entwicklertraining.deepseek4j.exceptions
- de.entwicklertraining.deepseek4j.models - package de.entwicklertraining.deepseek4j.models
- de.entwicklertraining.deepseek4j.user.balance - package de.entwicklertraining.deepseek4j.user.balance
- DeepSeekChat(DeepSeekClient) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekClient.DeepSeekChat
- DeepSeekClient - Class in de.entwicklertraining.deepseek4j
-
DeepSeekClient handles HTTP requests to the DeepSeek Chat Completion API, including exponential backoff for 429 (Rate Limit) and 503 (Server Overloaded).
- DeepSeekClient() - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekClient
- DeepSeekClient(ApiClientSettings) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekClient
- DeepSeekClient(ApiClientSettings, String) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekClient
- DeepSeekClient.DeepSeekChat - Class in de.entwicklertraining.deepseek4j
- DeepSeekClient.DeepSeekUser - Class in de.entwicklertraining.deepseek4j
- DeepSeekCompletionCallHandler - Class in de.entwicklertraining.deepseek4j.chat.completion
-
DeepSeekCompletionCallHandler orchestrates sending a DeepSeekCompletionRequest, handling any tool calls (function calls), and continuing the conversation until a final answer is reached or the max turns is exceeded.
- DeepSeekCompletionCallHandler(DeepSeekClient) - Constructor for class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionCallHandler
- DeepSeekCompletionRequest - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents a request to the DeepSeek Chat Completion API.
- DeepSeekCompletionRequest.Builder - Class in de.entwicklertraining.deepseek4j.chat.completion
- DeepSeekCompletionRequest.DeepSeekStreamOptions - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents the options for streaming responses.
- DeepSeekCompletionResponse - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents a response from the DeepSeek Chat Completion API.
- DeepSeekCompletionResponse(JSONObject, DeepSeekCompletionRequest) - Constructor for class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Constructs a DeepSeekCompletionResponse.
- DeepSeekCompletionResponse.Choice - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents a single choice in the chat completion response.
- DeepSeekCompletionResponse.CompletionTokensDetails - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents detailed token counts within the completion usage.
- DeepSeekCompletionResponse.FunctionCall - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents the function details within a tool call.
- DeepSeekCompletionResponse.Logprobs - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents log probability information for the completion.
- DeepSeekCompletionResponse.Message - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents a message within a choice, including content and potential tool calls.
- DeepSeekCompletionResponse.TokenLogprob - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents log probability information for a single token.
- DeepSeekCompletionResponse.ToolCall - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents a tool call requested by the model.
- DeepSeekCompletionResponse.TopTokenLogprob - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents log probability information for one of the top alternative tokens.
- DeepSeekCompletionResponse.Usage - Class in de.entwicklertraining.deepseek4j.chat.completion
-
Represents usage statistics for the API call.
- DeepSeekJsonSchema - Interface in de.entwicklertraining.deepseek4j
-
A sealed interface representing a DeepSeek-compatible JSON Schema definition, supporting object/array/string/enum/anyOf types and the ability to mark fields as required.
- DeepSeekModelsRequest - Class in de.entwicklertraining.deepseek4j.models
-
Represents a request to the DeepSeek Models API.
- DeepSeekModelsRequest.Builder - Class in de.entwicklertraining.deepseek4j.models
- DeepSeekModelsResponse - Class in de.entwicklertraining.deepseek4j.models
-
Represents a response from the DeepSeek Models API.
- DeepSeekModelsResponse(JSONObject, DeepSeekModelsRequest) - Constructor for class de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse
-
Constructs a DeepSeekModelsResponse.
- DeepSeekModelsResponse.Model - Class in de.entwicklertraining.deepseek4j.models
-
Represents a model in the DeepSeek Models API response.
- DeepSeekRequest<T> - Class in de.entwicklertraining.deepseek4j
-
A generic request abstraction for DeepSeek calls (chat completions, etc.).
- DeepSeekRequest(Y) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekRequest
- DeepSeekResponse<T> - Class in de.entwicklertraining.deepseek4j
-
A generic response abstraction from DeepSeek calls (chat completions, etc.).
- DeepSeekResponse(JSONObject, T) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekResponse
- DeepSeekResponseFormat - Class in de.entwicklertraining.deepseek4j
-
Represents the response_format object for DeepSeek, specifying the format the model must output.
- DeepSeekResponseFormat(String) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekResponseFormat
- DeepSeekStreamOptions(Boolean) - Constructor for class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.DeepSeekStreamOptions
- DeepSeekTokenService - Class in de.entwicklertraining.deepseek4j
-
Tokenzähler für DeepSeek-Modelle (Byte-Level BPE).
- DeepSeekTokenService() - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekTokenService
- DeepSeekTokenServiceException - Exception Class in de.entwicklertraining.deepseek4j.exceptions
-
Custom runtime exception for errors related to the DeepSeekTokenService.
- DeepSeekTokenServiceException(String) - Constructor for exception class de.entwicklertraining.deepseek4j.exceptions.DeepSeekTokenServiceException
- DeepSeekTokenServiceException(String, Throwable) - Constructor for exception class de.entwicklertraining.deepseek4j.exceptions.DeepSeekTokenServiceException
- DeepSeekToolCallContext - Record Class in de.entwicklertraining.deepseek4j
-
Encapsulates the arguments that the model provided when calling a tool.
- DeepSeekToolCallContext(JSONObject) - Constructor for record class de.entwicklertraining.deepseek4j.DeepSeekToolCallContext
-
Creates an instance of a
DeepSeekToolCallContextrecord class. - DeepSeekToolDefinition - Class in de.entwicklertraining.deepseek4j
-
Represents a function-like tool definition in DeepSeek, with a name, description, parameters (JSON schema), and a callback that is executed when the model calls this tool.
- DeepSeekToolDefinition.Builder - Class in de.entwicklertraining.deepseek4j
- DeepSeekToolResult - Record Class in de.entwicklertraining.deepseek4j
- DeepSeekToolResult(String) - Constructor for record class de.entwicklertraining.deepseek4j.DeepSeekToolResult
-
Creates an instance of a
DeepSeekToolResultrecord class. - DeepSeekToolsCallback - Interface in de.entwicklertraining.deepseek4j
- DeepSeekUser(DeepSeekClient) - Constructor for class de.entwicklertraining.deepseek4j.DeepSeekClient.DeepSeekUser
- DeepSeekUserBalanceRequest - Class in de.entwicklertraining.deepseek4j.user.balance
-
Represents a request to the DeepSeek User Balance API.
- DeepSeekUserBalanceRequest.Builder - Class in de.entwicklertraining.deepseek4j.user.balance
- DeepSeekUserBalanceResponse - Class in de.entwicklertraining.deepseek4j.user.balance
-
Represents a response from the DeepSeek User Balance API.
- DeepSeekUserBalanceResponse(JSONObject, DeepSeekUserBalanceRequest) - Constructor for class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse
-
Constructs a DeepSeekUserBalanceResponse.
- DeepSeekUserBalanceResponse.BalanceInfo - Class in de.entwicklertraining.deepseek4j.user.balance
-
Represents balance information for a specific currency.
- description() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition
- description(String) - Method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- description(String) - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition.Builder
E
- enumSchema(String, String...) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- enumValues(String...) - Method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- equals(Object) - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolCallContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolResult
-
Indicates whether some other object is "equal to" this one.
- execute() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- execute() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest.Builder
- execute() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest.Builder
- executeWithExponentialBackoff() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- executeWithExponentialBackoff() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest.Builder
- executeWithExponentialBackoff() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest.Builder
F
- finishReason() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Convenience method to get the finish reason from the first choice.
- frequencyPenalty() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- frequencyPenalty(Double) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
G
- getArguments() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.FunctionCall
-
The arguments as a JSON string.
- getArgumentsAsJson() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.FunctionCall
-
Convenience method to parse arguments into a JSONObject.
- getBalanceInfos() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse
-
Gets the list of balance information for different currencies.
- getBody() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- getBody() - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
-
Returns the request body as a String (often JSON).
- getBody() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest
- getBody() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest
- getBodyBytes() - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
-
If there's a binary body, override this.
- getBytes() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TokenLogprob
-
List of integers representing the UTF-8 bytes sequence.
- getBytes() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TopTokenLogprob
-
List of integers representing the UTF-8 bytes sequence.
- getChoices() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the list of chat completion choices.
- getCompletionTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
- getCompletionTokensDetails() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
-
Gets detailed token counts, specifically for reasoning tokens (optional).
- getContent() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Logprobs
- getContent() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Message
-
Gets the primary content of the message.
- getContentType() - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
-
By default, we use "application/json".
- getCreated() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the Unix timestamp (in seconds) of when the chat completion was created.
- getCurrency() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse.BalanceInfo
-
Gets the currency of the balance (CNY or USD).
- getFinishReason() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Choice
- getFunction() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.ToolCall
- getGrantedBalance() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse.BalanceInfo
-
Gets the total not expired granted balance.
- getHttpMethod() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- getHttpMethod() - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
-
Returns the HTTP method (e.g.
- getHttpMethod() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest
- getHttpMethod() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest
- getId() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the unique identifier for the chat completion.
- getId() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.ToolCall
- getId() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse.Model
-
Gets the model identifier, which can be referenced in the API endpoints.
- getIndex() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Choice
- getJson() - Method in class de.entwicklertraining.deepseek4j.DeepSeekResponse
- getLogprob() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TokenLogprob
- getLogprob() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TopTokenLogprob
- getLogprobs() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Choice
- getMessage() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Choice
- getModel() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the model used for the chat completion.
- getModels() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse
-
Gets the list of available models.
- getName() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.FunctionCall
- getObject() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the object type, which is always "chat.completion".
- getObject() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse
-
Gets the object type, which is always "list".
- getObject() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse.Model
-
Gets the object type, which is always "model".
- getOwnedBy() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse.Model
-
Gets the organization that owns the model.
- getPromptCacheHitTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
-
Gets the number of prompt tokens served from cache.
- getPromptCacheMissTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
-
Gets the number of prompt tokens not served from cache.
- getPromptTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
- getReasoningContent() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Message
-
Gets the reasoning content (specific to deepseek-reasoner).
- getReasoningTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.CompletionTokensDetails
-
Gets the number of tokens used for reasoning steps (specific to deepseek-reasoner).
- getRelativeUrl() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- getRelativeUrl() - Method in class de.entwicklertraining.deepseek4j.models.DeepSeekModelsRequest
- getRelativeUrl() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceRequest
- getRequest() - Method in class de.entwicklertraining.deepseek4j.DeepSeekResponse
- getRole() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Message
- getSystemFingerprint() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the system fingerprint representing the backend configuration used for the request.
- getToken() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TokenLogprob
- getToken() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TopTokenLogprob
- getToolCalls() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Message
- getTopLogprobs() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.TokenLogprob
- getToppedUpBalance() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse.BalanceInfo
-
Gets the total topped-up balance.
- getTotalBalance() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse.BalanceInfo
-
Gets the total available balance, including the granted balance and the topped-up balance.
- getTotalTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
- getType() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.ToolCall
-
Always "function" for now.
- getUsage() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse
-
Gets the usage statistics for the completion request.
H
- handle(DeepSeekToolCallContext) - Method in interface de.entwicklertraining.deepseek4j.DeepSeekToolsCallback
-
Handle the tool call.
- handleRequest(DeepSeekCompletionRequest, boolean) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionCallHandler
-
Main method: sends the conversation to DeepSeek, handles potential tool calls, and repeats until a final response is reached or an error occurs.
- hashCode() - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolCallContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolResult
-
Returns a hash code value for this object.
I
- includeUsage() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.DeepSeekStreamOptions
- integerSchema(String) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- isAvailable() - Method in class de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse
-
Gets whether the user's balance is sufficient for API calls.
- isBinaryResponse() - Method in class de.entwicklertraining.deepseek4j.DeepSeekRequest
-
If the request expects a binary response, override and return true.
- items(DeepSeekJsonSchema) - Method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
J
- json - Variable in class de.entwicklertraining.deepseek4j.DeepSeekResponse
- jsonObject() - Static method in class de.entwicklertraining.deepseek4j.DeepSeekResponseFormat
L
- logprobs() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- logprobs(Boolean) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
M
- maxTokens() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- maxTokens(Integer) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- messages() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- model() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- model(String) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- models() - Method in class de.entwicklertraining.deepseek4j.DeepSeekClient
N
- name() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition
- numberSchema(String) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
O
- objectSchema() - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- of(String) - Static method in record class de.entwicklertraining.deepseek4j.DeepSeekToolResult
P
- parameter(String, DeepSeekJsonSchema, boolean) - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition.Builder
- parameters() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition
- presencePenalty() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- presencePenalty(Double) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- property(String, DeepSeekJsonSchema, boolean) - Method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
R
- responseFormat() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- responseFormat(DeepSeekResponseFormat) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
S
- stop() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- stop(Object) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- stream() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- stream(Boolean) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- streamOptions() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- streamOptions(DeepSeekCompletionRequest.DeepSeekStreamOptions) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- stringSchema(String) - Static method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
T
- temperature() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- temperature(Double) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- text() - Static method in class de.entwicklertraining.deepseek4j.DeepSeekResponseFormat
- toJson() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.DeepSeekStreamOptions
- toJson() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
-
Constructs the JSON body with all relevant fields.
- toJson() - Method in interface de.entwicklertraining.deepseek4j.DeepSeekJsonSchema
- toJson() - Method in class de.entwicklertraining.deepseek4j.DeepSeekResponseFormat
- toJson() - Method in class de.entwicklertraining.deepseek4j.DeepSeekToolDefinition
-
Produces the JSON structure needed by the DeepSeek API to describe this tool as a "function".
- toolChoice() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- toolChoice(Object) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- tools() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- topLogprobs() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- topLogprobs(Integer) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- topP() - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest
- topP(Double) - Method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.Builder
- toString() - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolCallContext
-
Returns a string representation of this record class.
- toString() - Method in record class de.entwicklertraining.deepseek4j.DeepSeekToolResult
-
Returns a string representation of this record class.
- type() - Method in class de.entwicklertraining.deepseek4j.DeepSeekResponseFormat
U
- user() - Method in class de.entwicklertraining.deepseek4j.DeepSeekClient
W
- withUsage(boolean) - Static method in class de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionRequest.DeepSeekStreamOptions
All Classes and Interfaces|All Packages|Serialized Form