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

Function async_stream

tests/utils.py:354–355  ·  view source on GitHub ↗
(request: AsyncRequest)

Source from the content-addressed store, hash-verified

352
353
354async def async_stream(request: AsyncRequest) -> AsyncStream[object]:
355 return await request()
356
357
358async def async_raw_response(request: AsyncRequest) -> AsyncAPIResponse[AsyncStream[object]]:

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected