Skip to content

Filter

Structure Class

Filter dataclass

Bases: _SerdeShape

The filter that applies conditions to agent traces during online evaluation to determine which traces should be evaluated.

Attributes

key instance-attribute
key: str

The key or field name to filter on within the agent trace data.

operator instance-attribute
operator: str

The comparison operator to use for filtering.

value instance-attribute
value: FilterValue

The value to compare against using the specified operator.