Class ModelUsageMetricsGenerator

java.lang.Object
org.springframework.ai.model.observation.ModelUsageMetricsGenerator

public final class ModelUsageMetricsGenerator extends Object
Generate metrics about the model usage in the context of an AI operation.
Since:
1.0.0
Author:
Thomas Vitale
  • Constructor Details

    • ModelUsageMetricsGenerator

      public ModelUsageMetricsGenerator()
  • Method Details

    • generate

      public static void generate(Usage usage, io.micrometer.observation.Observation.Context context, io.micrometer.core.instrument.MeterRegistry meterRegistry)