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

Function simplify_contents

tests/unittests/testing_utils.py:157–158  ·  view source on GitHub ↗
(contents: list[types.Content])

Source from the content-addressed store, hash-verified

155
156# Simplifies the contents into a list of (author, simplified_content) tuples.
157def simplify_contents(contents: list[types.Content]) -> list[(str, types.Part)]:
158 return [(content.role, simplify_content(content)) for content in contents]
159
160
161# Simplifies the content so it's easier to assert.

Callers

nothing calls this directly

Calls 1

simplify_contentFunction · 0.70

Tested by

no test coverage detected