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

Function make_async_client

tests/test_open_telemetry.py:186–190  ·  view source on GitHub ↗
(spans: Spans, **options: Any)

Source from the content-addressed store, hash-verified

184
185
186def make_async_client(spans: Spans, **options: Any) -> AsyncAnthropic:
187 options.setdefault("open_telemetry", spans.option())
188 options.setdefault("_strict_response_validation", True)
189 options.setdefault("base_url", base_url)
190 return AsyncAnthropic(api_key="key", **options)
191
192
193class StartAttributes(sampling.Sampler):

Calls 2

AsyncAnthropicClass · 0.90
optionMethod · 0.45

Tested by

no test coverage detected