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

Function run_and_print

src/google/adk/cli/cli.py:220–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 invocation_id = None
219
220 async def run_and_print():
221 nonlocal invocation_id
222 async with Aclosing(
223 runner.run_async(
224 user_id=session.user_id,
225 session_id=session.id,
226 new_message=next_message,
227 invocation_id=resume_invocation_id,
228 )
229 ) as agen:
230 async for event in agen:
231 collected_events.append(event)
232 if getattr(event, 'invocation_id', None):
233 invocation_id = event.invocation_id
234 _print_event(event, jsonl=jsonl, session_id=session.id)
235
236 try:
237 if timeout:

Callers 1

run_interactivelyFunction · 0.85

Calls 4

getattrFunction · 0.85
_print_eventFunction · 0.85
run_asyncMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected