INNER CODE UNIT · Python
transitions
concierge-hq/concierge · __init__.py:238
def transitions(self, value: Dict[str, List[str]]):
"""Define allowed stage transitions.
Example:
app.transitions = {
"browse": ["checkout"],
"checkout": ["payment"],
"payment": [],
}
"""
self._transitions = value
def stage(self, name: str) -> Callable:
"""Decorator to assign a tool to a stage.
Example:
@app.stage("browse")
@app.tool()