MCPcopy Create free account
hub / github.com/google/adk-python / _aiter_from_iter

Function _aiter_from_iter

src/google/adk/cli/fast_api.py:917–923  ·  view source on GitHub ↗
(iterator)

Source from the content-addressed store, hash-verified

915 if inspect.isgenerator(output):
916
917 async def _aiter_from_iter(iterator):
918 while True:
919 try:
920 chunk = await run_in_threadpool(next, iterator)
921 yield chunk
922 except StopIteration:
923 break
924
925 content_iter = _aiter_from_iter(output)
926 else:

Callers 1

stream_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected