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

Function make_client

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

Source from the content-addressed store, hash-verified

177
178
179def make_client(spans: Spans, **options: Any) -> Anthropic:
180 options.setdefault("open_telemetry", spans.option())
181 options.setdefault("_strict_response_validation", True)
182 options.setdefault("base_url", base_url)
183 return Anthropic(api_key="key", **options)
184
185
186def make_async_client(spans: Spans, **options: Any) -> AsyncAnthropic:

Calls 2

AnthropicClass · 0.90
optionMethod · 0.45

Tested by

no test coverage detected