INNER CODE UNIT · Python
name
stacklok/codegate · src/codegate/pipeline/cli/cli.py:120
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.
Args:
request (Any): The chat completion request to process
context (PipelineContext): The current pipeline context