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

Method on_event_callback

tests/unittests/test_runners.py:172–189  ·  view source on GitHub ↗
(
      self, *, invocation_context: InvocationContext, event: Event
  )

Source from the content-addressed store, hash-verified

170 )
171
172 async def on_event_callback(
173 self, *, invocation_context: InvocationContext, event: Event
174 ) -> Optional[Event]:
175 if not self.enable_event_callback:
176 return None
177 return Event(
178 invocation_id="",
179 author="",
180 content=types.Content(
181 parts=[
182 types.Part(
183 text=self.ON_EVENT_CALLBACK_MSG,
184 )
185 ],
186 role=event.content.role,
187 ),
188 custom_metadata=self.ON_EVENT_CALLBACK_METADATA,
189 )
190
191
192class TestRunnerFindAgentToRun:

Callers

nothing calls this directly

Calls 1

EventClass · 0.90

Tested by

no test coverage detected