Uses of Interface
de.espirit.firstspirit.ai.dto.TokenUsage
Packages that use TokenUsage
-
Uses of TokenUsage in de.espirit.firstspirit.ai
Methods in de.espirit.firstspirit.ai that return types with arguments of type TokenUsageModifier and TypeMethodDescription@NotNull Optional<TokenUsage>
GenerativeAIFunctionRequest.EvaluatedResponse.getTokenUsage()
Returns information about the combined token usage for the current function calling chain.@NotNull Optional<TokenUsage>
GenerativeAIFunctionRequest.EvaluatedResponseStream.getTokenUsage()
Returns information about the combined token usage for the current function calling chain. -
Uses of TokenUsage in de.espirit.firstspirit.ai.dto
Methods in de.espirit.firstspirit.ai.dto that return TokenUsageModifier and TypeMethodDescriptionstatic @NotNull TokenUsage
TokenUsage.create
(int request, int response, int total) Creates a new instance.Methods in de.espirit.firstspirit.ai.dto that return types with arguments of type TokenUsageModifier and TypeMethodDescription@NotNull Optional<TokenUsage>
Response.getTokenUsage()
Returns information about the token usage associated with the operation.Methods in de.espirit.firstspirit.ai.dto with parameters of type TokenUsageModifier and TypeMethodDescription@NotNull Response.Builder
Response.Builder.tokenUsage
(@Nullable TokenUsage tokenUsage) Configures the token usage associated with the request.