MCPcopy Create free account
hub / github.com/vercel/examples / missing_generator

Function missing_generator

python/vibe-coding-ide/backend/src/api/agent.py:83–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 if payload is None:
82 # Gracefully end the stream with a run_failed event
83 async def missing_generator() -> AsyncGenerator[str, None]:
84 yield sse_format(
85 emit_event(run_id, "run_failed", error="Unknown or expired run id")
86 )
87
88 return StreamingResponse(missing_generator(), headers=SSE_HEADERS)
89

Callers 2

run_eventsFunction · 0.85
resume_runFunction · 0.85

Calls 2

sse_formatFunction · 0.90
emit_eventFunction · 0.90

Tested by

no test coverage detected