Skip to content

Commit f73351e

Browse files
committed
Code comment + cleanup
1 parent 4217e81 commit f73351e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bot/engine/src/main/kotlin/engine/config/RAGAnswerHandler.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ object RAGAnswerHandler : AbstractProactiveAnswerHandler {
8383
it.score
8484
)
8585
}.toMutableList(),
86+
// modifiedObservabilityInfo includes the public langfuse URL if filled.
8687
metadata = ActionMetadata(isGenAiRagAnswer = true, observabilityInfo = modifiedObservabilityInfo)
8788
)
8889
)
@@ -98,10 +99,8 @@ object RAGAnswerHandler : AbstractProactiveAnswerHandler {
9899
val config = botBus.botDefinition.observabilityConfiguration
99100
if (config?.enabled == true && config.setting is LangfuseObservabilitySetting<*>) {
100101
val setting = config.setting as LangfuseObservabilitySetting<*>
101-
// Stockage dans une variable locale pour éviter le smart cast impossible sur une propriété déclarée dans un autre module
102102
val publicUrl = setting.publicUrl
103103
if (!publicUrl.isNullOrBlank()) {
104-
// Remplace l'URL interne par l'URL publique configurée
105104
return info.copy(traceUrl = info.traceUrl.replace(setting.url, publicUrl))
106105
}
107106
}

0 commit comments

Comments
 (0)