Package com.flowable.platform.service.dashboard.resultmapper.extractor
package com.flowable.platform.service.dashboard.resultmapper.extractor
-
ClassDescriptionComputes the total LLM cost per time bucket (a time series for a line chart) by combining per-bucket, per-model token sums with the configured model prices for the tenant.Computes the total cost per LLM model by combining the input/output/cached token sums from the
_flowable_AgentInvocationTokensByModelByTypeQueryquery result with the model prices stored in the configuration store for the tenant.Computes the single total cost across all LLM models by combining the input/output/cached token sums from the_flowable_AgentInvocationTokensByModelByTypeQueryquery result with the model prices stored in the configuration store for the tenant.A specialization of theJsonObjectKeyValueExtractorQueryResultMapperthat will look in the 'aggregations' field by default.