EvaluationInput

sealed class EvaluationInput

The input data structure containing agent session spans in OpenTelemetry format. Supports traces from frameworks like Strands (AgentCore Runtime) and LangGraph with OpenInference instrumentation for comprehensive evaluation.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
data class SessionSpans(val value: List<<Error class: unknown class>?>) : EvaluationInput

The collection of spans representing agent execution traces within a session. Each span contains detailed information about tool calls, model interactions, and other agent activities that can be evaluated for quality and performance.

Functions

Link copied to clipboard
fun asSessionSpans(): List<<Error class: unknown class>?>

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

Link copied to clipboard
fun asSessionSpansOrNull(): List<<Error class: unknown class>?>?

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