Uses of Class
org.mockserver.model.Usage
Packages that use Usage
-
Uses of Usage in org.mockserver.client
Methods in org.mockserver.client that return UsageModifier and TypeMethodDescriptionstatic UsageLlm.inputTokens(int inputTokens) Creates a Usage with the given input tokens.static UsageLlm.outputTokens(int outputTokens) Creates a Usage with the given output tokens. -
Uses of Usage in org.mockserver.model
Methods in org.mockserver.model that return UsageModifier and TypeMethodDescriptionCompletion.getUsage()static UsageUsage.inputTokens(int inputTokens) static UsageUsage.outputTokens(int outputTokens) static UsageUsage.usage()Usage.withCacheCreationTokens(Integer cacheCreationTokens) Input tokens written to a prompt cache (Anthropiccache_creation_input_tokens).Usage.withCachedInputTokens(Integer cachedInputTokens) Input tokens served from a prompt cache (OpenAIprompt_tokens_details.cached_tokens/ Anthropiccache_read_input_tokens).Usage.withInputTokens(Integer inputTokens) Usage.withOutputTokens(Integer outputTokens) Usage.withReasoningTokens(Integer reasoningTokens) Reasoning/thinking tokens billed as output but not part of the visible completion (OpenAIcompletion_tokens_details.reasoning_tokens).Methods in org.mockserver.model with parameters of type Usage