Result

data class Result(val moderationResult: ModerationResult) : KoogAttributes.Koog.Moderation(source)

koog.moderation.result attribute.

The OpenTelemetry GenAI semantic conventions do not define a moderation outcome attribute, so Koog publishes this as a Koog-namespaced attribute on the inference span when moderationResponse is present.

Constructors

Link copied to clipboard
constructor(moderationResult: ModerationResult)

Properties

Link copied to clipboard
open override val key: String

Attribute key

Link copied to clipboard
Link copied to clipboard
open override val value: HiddenString

Attribute value.

Functions

Link copied to clipboard
open fun String.concatKey(other: String): String

Joins two attribute-key segments with a . separator.