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

Method async_fn

tests/test_middleware.py:2520–2521  ·  view source on GitHub ↗
(request: APIRequest, call_next: AsyncCallNext)

Source from the content-addressed store, hash-verified

2518 make_async_mantle_client(middleware=[sync_fn])
2519
2520 async def async_fn(request: APIRequest, call_next: AsyncCallNext) -> Any:
2521 return await call_next(request)
2522
2523 with pytest.raises(TypeError, match="is an async function"):
2524 make_vertex_client(middleware=[async_fn])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected