EvaluationTarget

sealed class EvaluationTarget

The specification of which trace or span IDs to evaluate within the provided input data. Allows precise targeting of evaluation at different levels: tool calls, traces, or sessions.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
data class SpanIds(val value: List<String>) : EvaluationTarget

The list of specific span IDs to evaluate within the provided traces. Used to target evaluation at individual tool calls or specific operations within the agent's execution flow.

Link copied to clipboard
data class TraceIds(val value: List<String>) : EvaluationTarget

The list of trace IDs to evaluate, representing complete request-response interactions. Used to evaluate entire conversation turns or specific agent interactions within a session.

Functions

Link copied to clipboard

Casts this EvaluationTarget as a SpanIds and retrieves its kotlin.collections.List value. Throws an exception if the EvaluationTarget is not a SpanIds.

Link copied to clipboard

Casts this EvaluationTarget as a SpanIds and retrieves its kotlin.collections.List value. Returns null if the EvaluationTarget is not a SpanIds.

Link copied to clipboard

Casts this EvaluationTarget as a TraceIds and retrieves its kotlin.collections.List value. Throws an exception if the EvaluationTarget is not a TraceIds.

Link copied to clipboard

Casts this EvaluationTarget as a TraceIds and retrieves its kotlin.collections.List value. Returns null if the EvaluationTarget is not a TraceIds.