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

Function simplify_events

tests/unittests/testing_utils.py:124–129  ·  view source on GitHub ↗
(events: list[Event])

Source from the content-addressed store, hash-verified

122# Extracts the contents from the events and transform them into a list of
123# (author, simplified_content) tuples.
124def simplify_events(events: list[Event]) -> list[(str, types.Part)]:
125 return [
126 (event.author, simplify_content(event.content))
127 for event in events
128 if event.content
129 ]
130
131
132END_OF_AGENT = 'end_of_agent'

Callers 1

test_after_model_callFunction · 0.50

Calls 1

simplify_contentFunction · 0.70

Tested by

no test coverage detected