Skip to content

Bedrock Agentcore  >  Unions  >  Context

Context

Union Type

Context module-attribute

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.

Union Member Types

ContextSpanContext dataclass

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.

Attributes

value instance-attribute
value: SpanContext

ContextUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str