INNER CODE UNIT · Python
CodegateCli
stacklok/codegate · src/codegate/pipeline/cli/cli.py:116
class CodegateCli(PipelineStep):
"""Pipeline step that handles codegate cli."""
@property
def name(self) -> str:
"""
Returns the name of this pipeline step.
Returns:
str: The identifier 'codegate-cli'
"""
return "codegate-cli"
async def process(self, request: Any, context: PipelineContext) -> PipelineResult:
"""
Checks if the last user message contains "codegate" and process the command.
This short-circuits the pipeline if the message is found.