MCPcopy Create free account
hub / github.com/1rgs/claude-code-proxy / __init__

Method __init__

tests.py:369–381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

367 """Track statistics about a streaming response."""
368
369 def __init__(self):
370 self.event_types = set()
371 self.event_counts = {}
372 self.first_event_time = None
373 self.last_event_time = None
374 self.total_chunks = 0
375 self.events = []
376 self.text_content = ""
377 self.content_blocks = {}
378 self.has_tool_use = False
379 self.has_error = False
380 self.error_message = ""
381 self.text_content_by_block = {}
382
383 def add_event(self, event_data):
384 """Track information about each received event."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected