From b9b44b76f27f36faa8249f7a70a0423d3744b7f9 Mon Sep 17 00:00:00 2001 From: Javi Pacheco Date: Fri, 7 Jun 2024 08:57:51 +0200 Subject: [PATCH] JC comment addressed --- .../com/xebia/functional/xef/llm/MetricManagement.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/commonMain/kotlin/com/xebia/functional/xef/llm/MetricManagement.kt b/core/src/commonMain/kotlin/com/xebia/functional/xef/llm/MetricManagement.kt index d6b7940b8..91d8e948a 100644 --- a/core/src/commonMain/kotlin/com/xebia/functional/xef/llm/MetricManagement.kt +++ b/core/src/commonMain/kotlin/com/xebia/functional/xef/llm/MetricManagement.kt @@ -97,7 +97,12 @@ suspend fun RunDelta.addMetrics(metric: Metric): RunDelta { is RunDelta.MessageIncomplete -> message.addMetrics(metric, "MessageIncomplete") is RunDelta.MessageCompleted -> message.addMetrics(metric, "MessageCompleted") is RunDelta.MessageInProgress -> message.addMetrics(metric, "MessageInProgress") - else -> {} // ignore other cases + is RunDelta.MessageDelta, + is RunDelta.RunIncomplete, + is RunDelta.RunStepDelta, + is RunDelta.RunSubmitToolOutputs, + is RunDelta.ThreadCreated, + is RunDelta.Unknown -> {} } return this }