INNER CODE UNIT · Python
instance
concierge-hq/concierge · __init__.py:185
instance = cls(name, config=config or Config(), **kwargs)
instance._openapi_standalone = standalone
return instance
@property
def enforce_completion(self) -> bool:
"""If True, instruct LLM that it must continue until reaching a terminal stage."""
return self._enforce_completion
@enforce_completion.setter
def enforce_completion(self, value: bool):
self._enforce_completion = value
def _is_terminal_stage(self, stage: str) -> bool:
"""A stage is terminal if it has no outgoing transitions."""
return not self._transitions.get(stage, [])
def _get_session_stage(self, session_id: Optional[str]) -> str: