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

Method consume_responses

tests/unittests/testing_utils.py:312–323  ·  view source on GitHub ↗
(session: Session)

Source from the content-addressed store, hash-verified

310 collected_responses = []
311
312 async def consume_responses(session: Session):
313 run_res = self.runner.run_live(
314 session=session,
315 live_request_queue=live_request_queue,
316 run_config=run_config or RunConfig(),
317 )
318
319 async for response in run_res:
320 collected_responses.append(response)
321 # When we have enough response, we should return
322 if len(collected_responses) >= 1:
323 return
324
325 try:
326 session = self.session

Callers

nothing calls this directly

Calls 3

RunConfigClass · 0.90
run_liveMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected