Class ModelUsageMetricsGenerator
java.lang.Object
org.springframework.ai.model.observation.ModelUsageMetricsGenerator
Generate metrics about the model usage in the context of an AI operation.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Constructor Summary
-
Method Summary
-
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)
-