Uses of Interface
org.springframework.ai.chat.metadata.Usage
Package
Description
Provides the API for embedding observations.
Provides classes for observing model data.
-
Uses of Usage in org.springframework.ai.anthropic.metadata
-
Uses of Usage in org.springframework.ai.azure.openai
Modifier and TypeMethodDescriptionstatic ChatResponseMetadata
AzureOpenAiChatModel.from
(com.azure.ai.openai.models.ChatCompletions chatCompletions, PromptMetadata promptFilterMetadata, Usage usage) static ChatResponseMetadata
AzureOpenAiChatModel.from
(ChatResponse chatResponse, Usage usage) -
Uses of Usage in org.springframework.ai.azure.openai.metadata
-
Uses of Usage in org.springframework.ai.bedrock
-
Uses of Usage in org.springframework.ai.bedrock.anthropic3
Modifier and TypeMethodDescriptionprotected Usage
BedrockAnthropic3ChatModel.extractUsage
(Anthropic3ChatBedrockApi.AnthropicChatResponse response) Deprecated. -
Uses of Usage in org.springframework.ai.bedrock.converse.api
-
Uses of Usage in org.springframework.ai.chat.metadata
Modifier and TypeClassDescriptionclass
Default implementation of theUsage
interface.class
A EmpytUsage implementation that returns zero for all property gettersModifier and TypeMethodDescriptionstatic Usage
UsageUtils.getCumulativeUsage
(Usage currentUsage, ChatResponse previousChatResponse) Accumulate usage tokens from the previous chat response to the current usage tokens.ChatResponseMetadata.getUsage()
Returns AI provider specific metadata on API usage.Modifier and TypeMethodDescriptionstatic Usage
UsageUtils.getCumulativeUsage
(Usage currentUsage, ChatResponse previousChatResponse) Accumulate usage tokens from the previous chat response to the current usage tokens.static boolean
Check if theUsage
is empty. -
Uses of Usage in org.springframework.ai.chat.model
-
Uses of Usage in org.springframework.ai.embedding
Modifier and TypeMethodDescriptionEmbeddingResponseMetadata.getUsage()
The AI provider specific metadata on API usage. -
Uses of Usage in org.springframework.ai.minimax.metadata
-
Uses of Usage in org.springframework.ai.mistralai
Modifier and TypeMethodDescriptionstatic ChatResponseMetadata
MistralAiChatModel.from
(MistralAiApi.ChatCompletion result, Usage usage) -
Uses of Usage in org.springframework.ai.mistralai.metadata
-
Uses of Usage in org.springframework.ai.model.observation
-
Uses of Usage in org.springframework.ai.moonshot.metadata
-
Uses of Usage in org.springframework.ai.ollama.metadata
-
Uses of Usage in org.springframework.ai.openai.metadata
-
Uses of Usage in org.springframework.ai.qianfan.metadata
-
Uses of Usage in org.springframework.ai.vertexai.embedding
-
Uses of Usage in org.springframework.ai.vertexai.gemini.metadata
-
Uses of Usage in org.springframework.ai.zhipuai.metadata