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

Function common_arguments

tests/lib/test_client_copy.py:194–203  ·  view source on GitHub ↗
(client_class: ClientClass)

Source from the content-addressed store, hash-verified

192
193
194def common_arguments(client_class: ClientClass) -> dict[str, object]:
195 return {
196 "timeout": 12.5,
197 "max_retries": 7,
198 "default_headers": {"x-kept": "yes"},
199 "default_query": {"kept": "yes"},
200 "open_telemetry": {"conversation_id": "conv_fake", "propagation": False},
201 "http_client": http_client(client_class),
202 "middleware": [PassThroughMiddleware()],
203 }
204
205
206def construct(client_class: ClientClass, *arguments: dict[str, object]) -> Any:

Calls 2

http_clientFunction · 0.85

Tested by

no test coverage detected