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

Function _event_function_response_ids

src/google/adk/apps/compaction.py:301–307  ·  view source on GitHub ↗

Returns function response ids found in an event.

(event: Event)

Source from the content-addressed store, hash-verified

299
300
301def _event_function_response_ids(event: Event) -> set[str]:
302 """Returns function response ids found in an event."""
303 function_response_ids: set[str] = set()
304 for function_response in event.get_function_responses():
305 if function_response.id:
306 function_response_ids.add(function_response.id)
307 return function_response_ids
308
309
310def _longest_self_contained_prefix(events: list[Event]) -> list[Event]:

Calls 3

setFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected