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

Method __call__

tests/test_tracing.py:110–115  ·  view source on GitHub ↗
(self, request: httpx2.Request)

Source from the content-addressed store, hash-verified

108 self.current_spans: list[SpanContext] = []
109
110 def __call__(self, request: httpx2.Request) -> httpx2.Response:
111 self.requests.append(request)
112 self.current_spans.append(trace.get_current_span().get_span_context())
113 if self.retried and len(self.requests) == 1:
114 return httpx2.Response(500, headers={"retry-after-ms": "1"}, json={})
115 return httpx2.Response(200, json={})
116
117 @property
118 def traceparents(self) -> list[str | None]:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected