MCPcopy Index your code
hub / github.com/google/adk-python / json_generator

Function json_generator

src/google/adk/cli/fast_api.py:797–802  ·  view source on GitHub ↗
(output: AsyncIterator[Any])

Source from the content-addressed store, hash-verified

795 return None
796
797 async def json_generator(output: AsyncIterator[Any]) -> AsyncIterator[str]:
798 async for chunk in output:
799 encoded_chunk = _encode_chunk_to_json(chunk)
800 if encoded_chunk is None:
801 break
802 yield encoded_chunk
803
804 async def _invoke_callable_or_raise(
805 invocation_callable: Callable[..., Any],

Callers 1

stream_queryFunction · 0.85

Calls 1

_encode_chunk_to_jsonFunction · 0.85

Tested by

no test coverage detected