cayu.sessions.SessionAggregateFilter
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionAggregateFilterCurrent session attributes that may scope a store-native aggregate.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
agent_name |
str | None |
None |
provider_name |
str | None |
None |
model |
str | None |
None |
environment_name |
str | None |
None |
parent_session_id |
str | None |
None |
causal_budget_id |
str | None |
None |
labels |
dict[str, str] |
Field(default_factory=dict, max_length=MAX_AGGREGATE_LABEL_FILTERS) |
label_selectors |
tuple[LabelSelectorRequirement, ...] |
Field(default_factory=tuple, max_length=MAX_AGGREGATE_LABEL_SELECTORS) |
validate_optional_nonblank_fields (method)
Section titled “validate_optional_nonblank_fields (method)”SessionAggregateFilter.validate_optional_nonblank_fields(value: str | None, info) -> str | Nonecopy_filter_labels (method)
Section titled “copy_filter_labels (method)”SessionAggregateFilter.copy_filter_labels(value) -> dict[str, str]copy_filter_label_selectors (method)
Section titled “copy_filter_label_selectors (method)”SessionAggregateFilter.copy_filter_label_selectors(value) -> tuple[LabelSelectorRequirement, ...]validate_selector_value_count (method)
Section titled “validate_selector_value_count (method)”SessionAggregateFilter.validate_selector_value_count() -> SessionAggregateFilter