Skip to content

tdfs4ds.agent.props_skill

tdfs4ds.agent.props_skill

Declared feature properties in the consumer agent (0.3.7.23), written by code (no LLM).

Four uses, all inert unless the store declares properties (tdfs4ds.feature_props; the core module's state.PRESENT is tested before any read, so a store without them issues no statement and every answer, route and prompt stays what it was):

  • "what is a valid value for X?" / "quelles valeurs sont valides pour X ?" -> the declared range / allowed values (VALUES route, like the attribute questions);
  • a DEFINITION of a feature ends with the rendered properties (what a NULL means...);
  • a question asking to select or target customers with a feature declared sensitive gets a fixed warning in front of the answer;
  • helpers for the VALUES extremes and the PLOT skill live in :mod:tdfs4ds.props_show.

_ca

_ca()

_fr

_fr(question: str) -> bool

props_frame

props_frame(ca=None) -> Optional[pd.DataFrame]

The declared properties of the turn, or None (nothing declared: no read). Read once per turn.

properties_request

properties_request(question: str, frame: Optional[DataFrame] = None) -> Optional[list]

The property rows a valid-values question is about, or None. Never raises.

skill_properties

skill_properties(question: str, frame: Optional[DataFrame] = None) -> Optional[dict]

The answer to a valid-values question as a skill result, or None. Never raises.

properties_line

properties_line(feature_name: str, entity_name: str = '', data_domain: str = '', fr: bool = False, frame: Optional[DataFrame] = None) -> str

The rendered properties of a feature (valid range, NULL meaning, sensitivity), "" when none.

sensitive_prefix

sensitive_prefix(question: str, frame: Optional[DataFrame] = None) -> str

A fixed warning when the question asks to select / target customers using a feature declared sensitive; "" otherwise (and with no read when nothing is declared).