MCPcopy Index your code
hub / github.com/github/copilot-sdk / _sse_body

Function _sse_body

python/e2e/test_copilot_request_handler_e2e.py:82–87  ·  view source on GitHub ↗
(text: str, resp_id: str)

Source from the content-addressed store, hash-verified

80
81
82def _sse_body(text: str, resp_id: str) -> bytes:
83 out = "".join(
84 f"event: {event['type']}\ndata: {json.dumps(event)}\n\n"
85 for event in responses_events(text, resp_id)
86 )
87 return out.encode("utf-8")
88
89
90async def _start_fake_upstream() -> _Upstream:

Callers 1

_routeMethod · 0.85

Calls 2

responses_eventsFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…