Context

sealed class Context

The contextual information associated with an evaluation, including span context details that identify the specific traces and sessions being evaluated within the agent's execution flow.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
data class SpanContext(val value: SpanContext) : Context

The span context information that uniquely identifies the trace and span being evaluated, including session ID, trace ID, and span ID for precise targeting within the agent's execution flow.

Functions

Link copied to clipboard

Casts this Context as a SpanContext and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.SpanContext value. Throws an exception if the Context is not a SpanContext.

Link copied to clipboard

Casts this Context as a SpanContext and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.SpanContext value. Returns null if the Context is not a SpanContext.