MCPcopy Create free account
hub / github.com/abi/screenshot-to-code / process

Method process

backend/routes/generate_code.py:761–769  ·  view source on GitHub ↗
(
        self, context: PipelineContext, next_func: Callable[[], Awaitable[None]]
    )

Source from the content-addressed store, hash-verified

759 """Handles prompt creation"""
760
761 async def process(
762 self, context: PipelineContext, next_func: Callable[[], Awaitable[None]]
763 ) -> None:
764 prompt_creator = PromptCreationStage(context.throw_error)
765 assert context.extracted_params is not None
766 context.prompt_messages = await prompt_creator.build_prompt_messages(
767 context.extracted_params,
768 )
769 await next_func()
770
771
772class CodeGenerationMiddleware(Middleware):

Callers

nothing calls this directly

Calls 3

build_prompt_messagesMethod · 0.95
PromptCreationStageClass · 0.85
next_funcFunction · 0.85

Tested by

no test coverage detected