INNER CODE UNIT · Python

_set_session_stage

concierge-hq/concierge · __init__.py:210

    def _set_session_stage(self, session_id: Optional[str], stage: str) -> None:
        """Set current stage for a session."""
        if session_id:
            self._state.set_session_stage(session_id, stage)

    @property
    def stages(self) -> Dict[str, List[str]]:
        """Get stages mapping: stage_name → [tool_names]"""
        return self._stages

    @stages.setter
    def stages(self, value: Dict[str, List[str]]):
        """Declaratively assign existing tools to stages.

        Example:
            app.stages = {
                "browse": ["search_items", "view_details"],
                "checkout": ["add_to_cart", "pay"],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…