Uses of Record Class
com.tnsai.llm.observability.CostEstimate
Packages that use CostEstimate
-
Uses of CostEstimate in com.tnsai.llm.observability
Methods in com.tnsai.llm.observability that return CostEstimateModifier and TypeMethodDescriptionLLMCallLog.cost()Returns the value of thecostrecord component.InMemoryLLMPricingRegistry.estimate(String provider, String model, TokenUsage usage) JsonLLMPricingRegistry.estimate(String provider, String model, TokenUsage usage) LLMPricingRegistry.estimate(String provider, String model, TokenUsage usage) Compute a USD cost estimate for the givenusageunder the namedprovider+model.static CostEstimateConvenience: zero-cost estimate — useful for failed calls or local models.Methods in com.tnsai.llm.observability with parameters of type CostEstimateConstructors in com.tnsai.llm.observability with parameters of type CostEstimateModifierConstructorDescriptionLLMCallLog(String callId, Instant startedAt, Instant completedAt, Duration elapsed, String provider, String model, String endpoint, com.tnsai.observability.events.EventContext context, LLMPrompt prompt, ToolSurface tools, LLMResponse response, TokenUsage usage, CostEstimate cost, com.tnsai.llm.ChatChunk.FinishReason finishReason, Optional<StreamMetrics> streamMetrics, Optional<ErrorInfo> error, int retryAttempt, Map<String, Object> providerExtensions) Creates an instance of aLLMCallLogrecord class.