MCPcopy Create free account
hub / github.com/github/copilot-sdk / sse

Function sse

python/e2e/_copilot_request_helpers.py:34–36  ·  view source on GitHub ↗

Frame a single Server-Sent Events message: ``event:``/``data:`` + blank line.

(event: str, data: dict)

Source from the content-addressed store, hash-verified

32
33
34def sse(event: str, data: dict) -> str:
35 """Frame a single Server-Sent Events message: ``event:``/``data:`` + blank line."""
36 return f"event: {event}\ndata: {json.dumps(data)}\n\n"
37
38
39def is_inference_url(url: str) -> bool:

Callers 1

build_inference_responseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected