Skip to content

cayu.sessions.SessionAggregateFilter

Part of cayu.sessions.base. Read the Python API overview and install the required extra.

from cayu.sessions import SessionAggregateFilter

Current session attributes that may scope a store-native aggregate.

Bases: BaseModel.

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 | None
SessionAggregateFilter.copy_filter_labels(value) -> dict[str, str]
SessionAggregateFilter.copy_filter_label_selectors(value) -> tuple[LabelSelectorRequirement, ...]
SessionAggregateFilter.validate_selector_value_count() -> SessionAggregateFilter

Release source · Runtime guarantees · Capability guides