MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / counting

Function counting

tests/test_open_telemetry.py:828–830  ·  view source on GitHub ↗
(**kwargs: Any)

Source from the content-addressed store, hash-verified

826 accumulated: list[str] = []
827
828 def counting(**kwargs: Any) -> Any:
829 accumulated.append(kwargs["event"].type)
830 return accumulate_event(**kwargs)
831
832 monkeypatch.setattr(module, "accumulate_event", counting)
833 return accumulated

Callers

nothing calls this directly

Calls 2

accumulate_eventFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected