Method
on_event_callback
(
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 | |
| 192 | class TestRunnerFindAgentToRun: |
Callers
nothing calls this directly
Tested by
no test coverage detected