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

Class AsyncHeld

tests/utils.py:328–333  ·  view source on GitHub ↗

What the caller holds of a response.

Source from the content-addressed store, hash-verified

326
327@dataclass(frozen=True)
328class AsyncHeld(Generic[_RequestedT, _KeptT]):
329 """What the caller holds of a response."""
330
331 request: Callable[[AsyncRequest], Awaitable[_RequestedT]]
332 keep: Callable[[_RequestedT], _KeptT]
333 iterate: Callable[[_KeptT], AsyncIterator[object]]
334
335
336async def async_stream(request: AsyncRequest) -> AsyncStream[object]:

Callers 1

utils.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected