MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _capture_streaming

Function _capture_streaming

uncommon_route/proxy.py:726–732  ·  view source on GitHub ↗
(
    body: dict, stream_chunks: list[bytes], transport: str
)

Source from the content-addressed store, hash-verified

724
725
726def _capture_streaming(
727 body: dict, stream_chunks: list[bytes], transport: str
728) -> dict[str, Any]:
729 if not _capture_enabled():
730 return {}
731 text, calls, finish = parse_stream_assistant_content(stream_chunks, transport)
732 return _build_capture_dict(body, text, calls, finish)
733
734
735class UpstreamSemanticCompressor:

Callers 2

_capture_for_recordFunction · 0.85

Calls 3

_capture_enabledFunction · 0.85
_build_capture_dictFunction · 0.85

Tested by 1