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

Function _run

tests/unittests/telemetry/test_telemetry_context.py:811–824  ·  view source on GitHub ↗
(
      runner: InMemoryRunner,
      telemetry_config: Optional[TelemetryConfig],
  )

Source from the content-addressed store, hash-verified

809 tenant_off = _make_test_runner('tenant_off')
810
811 async def _run(
812 runner: InMemoryRunner,
813 telemetry_config: Optional[TelemetryConfig],
814 ) -> None:
815 session = await runner.runner.session_service.create_session(
816 app_name=runner.app_name, user_id='test_user'
817 )
818 async for _ in runner.runner.run_async(
819 user_id=session.user_id,
820 session_id=session.id,
821 new_message=UserContent('hi'),
822 run_config=RunConfig(telemetry=telemetry_config),
823 ):
824 pass
825
826 await asyncio.gather(
827 _run(

Calls 4

RunConfigClass · 0.90
UserContentClass · 0.50
create_sessionMethod · 0.45
run_asyncMethod · 0.45

Tested by

no test coverage detected